Skill Agents
Manage sub-agents attached to a skill.
Skill Agents object
Attributes
object
StringString representing the object's type
id
Stringskill_id
Stringname
Stringdescription
StringNullableslug
Stringstatus
Enumstore_id
Stringstore_item_id
StringNullablepath
StringNullabledocument_id
Stringarchived_at
DateNullablecreated_at
Dateupdated_at
Date{"object": "skill.agent","status": "active"}
Create skill agent
Creates a new agent document in the skill agents directory.
URL Parameters
skill_id
StringThe unique identifier for the skill
Request Body
name
Stringdescription
StringOptionalNullablecontent
StringOptionalcurl -X POST "https://api.metorial.com/skills/ski_Rm4Mnheq2bfEPhBhP7SY/agents" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","content": "example_content"}'
List skill agents
Returns a paginated list of agents for a specific skill.
URL Parameters
skill_id
StringThe unique identifier for the skill
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalinclude_archived
BooleanOptionalcurl -X GET "https://api.metorial.com/skills/ski_Rm4Mnheq2bfEPhBhP7SY/agents" \-H "Authorization: Bearer metorial_sk_..."
Get skill agent by ID
Retrieves a specific agent within a skill.
URL Parameters
skill_id
StringThe unique identifier for the skill
skill_agent_id
StringThe unique identifier for the skill_agent
curl -X GET "https://api.metorial.com/skills/ski_Rm4Mnheq2bfEPhBhP7SY/agents/ski_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Update skill agent
Updates the name or description for a specific skill agent.
URL Parameters
skill_id
StringThe unique identifier for the skill
skill_agent_id
StringThe unique identifier for the skill_agent
Request Body
name
StringOptionaldescription
StringOptionalNullablecurl -X PATCH "https://api.metorial.com/skills/ski_Rm4Mnheq2bfEPhBhP7SY/agents/ski_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description"}'
Delete skill agent
Archives a specific skill agent and removes its linked store item.
URL Parameters
skill_id
StringThe unique identifier for the skill
skill_agent_id
StringThe unique identifier for the skill_agent
curl -X DELETE "https://api.metorial.com/skills/ski_Rm4Mnheq2bfEPhBhP7SY/agents/ski_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."