Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

List skills

Retrieve currently registered skills.

GET/api/skill
Query parameters
locationobject | any
Responses
200Success
locationLocation.Inforequired
Show properties
directorystringrequired
workspaceIDobject
Show properties
object
projectobjectrequired
Show properties
idstringrequired
directorystringrequired
dataSkill.Info[]required
Show properties
Array of Skill.Info
idstringrequired
namestringrequired
descriptionstring
slashboolean
autoinvokeboolean
locationstringrequired
contentstringrequired
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
Request
curl -X GET "/api/skill"
Response
{
  "location": {
    "directory": "string",
    "workspaceID": {},
    "project": {
      "id": "string",
      "directory": "string"
    }
  },
  "data": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "slash": true,
      "autoinvoke": true,
      "location": "string",
      "content": "string"
    }
  ]
}