Skip to main content
GET
/
agent_skills
/
{id}
Python
from acontext import AcontextClient

client = AcontextClient(api_key='sk_project_token')

# Get a skill by ID
skill = client.skills.get('skill-uuid-here')
print(f"Skill: {skill.name}")
print(f"Description: {skill.description}")
print(f"Files: {len(skill.file_index)} file(s)")
for f in skill.file_index:
    print(f"  - {f.path} ({f.mime})")
{
  "code": 123,
  "error": "<string>",
  "msg": "<string>",
  "data": {
    "created_at": "<string>",
    "description": "<string>",
    "disk_id": "<string>",
    "file_index": [
      {
        "mime": "<string>",
        "path": "<string>"
      }
    ],
    "id": "<string>",
    "meta": {},
    "name": "<string>",
    "updated_at": "<string>",
    "user_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Path Parameters

id
string
required

Agent skill UUID

Response

200 - application/json

OK

code
integer
error
string
msg
string
data
object