For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList agents
      • POSTCreate agent
      • POSTFetch external agent card
      • GETGet agent details
      • PUTUpdate agent
      • DELDelete agent
      • STREAMResolve a pending agent tool approval
      • POSTAdd capability to agent
      • DELRemove capability from agent
      • STREAMExecute agent
      • GETList agent executions
      • GETGet execution detail
      • GETList tool calls
      • GETGet tool call detail
      • GETExport agent for runtime
      • POSTPublish agent
      • POSTRefresh cached agent card
      • STREAMResume a paused agent execution
      • POSTExecute agent voice (text-to-speech)
Dashboard
LogoLogo
Runtype APIAgents

Add capability to agent

POST
/v1/agents/:id/capabilities
POST
/v1/agents/:id/capabilities
$curl -X POST https://api.runtype.com/v1/agents/id/capabilities \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "toolName": "process_customer_request",
> "flowId": "flow_01jv0000000000000000000001",
> "toolDescription": "Process Customer Request"
>}'
1{
2 "displayOrder": 1,
3 "enabled": true,
4 "flowId": "string",
5 "id": "string",
6 "subAgentId": "string",
7 "toolDescription": "string",
8 "toolId": "string",
9 "toolName": "string",
10 "agentId": "string",
11 "createdAt": "string"
12}

Add a capability (flow, sub-agent, or tool binding) to an agent.

Was this page helpful?
Previous

Remove capability from agent

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Request

This endpoint expects an object.
toolNamestringRequired1-100 characters
enabledbooleanOptional
flowIdstringOptional
parametersSchemaanyOptional
subAgentIdstringOptional
toolDescriptionstringOptional
toolIdstringOptional

Response

Capability added
displayOrderinteger or null
enabledboolean
flowIdstring or null
idstring
subAgentIdstring or null
toolDescriptionstring or null
toolIdstring or null
toolNamestring
agentIdstring
createdAtstring
parametersSchemaany

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error