Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Activate skill

Activate a skill for a session by appending a skill message and resuming execution.

POST/api/session/{sessionID}/skill
Path parameters
sessionIDobjectrequired
Request body
requiredapplication/json
idobject | any
Show properties
Any of:
object
object
any
any
skillstringrequired
resumeboolean | any
Show properties
Any of:
boolean
boolean
any
any
Responses
204<No Content>
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
404SessionNotFoundError | SkillNotFoundError
Any of:
SkillNotFoundError
_tagstringrequired
Allowed:SkillNotFoundError
skillstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
Request
curl -X POST "/api/session/%5Bobject%20Object%5D/skill" \
  -H "Content-Type: application/json" \
  -d '{
  "id": {},
  "skill": "string",
  "resume": true
}'
Response
<No Content>