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
      • POSTRefresh cached agent card
      • GETGet agent details
      • PUTUpdate agent
      • DELDelete agent
      • GETExport agent for runtime
      • GETList agent executions
      • GETGet execution detail
      • GETList tool calls
      • GETGet tool call detail
      • POSTPublish agent
      • POSTAdd capability to agent
      • DELRemove capability from agent
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: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "toolName": "Email Automation Tool"
>}'
1{
2 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "flowId": "flow-67890",
4 "subAgentId": "subagent-54321",
5 "toolId": "tool-98765",
6 "toolName": "Email Automation Tool",
7 "toolDescription": "Automates sending personalized email campaigns based on user behavior.",
8 "enabled": true,
9 "displayOrder": 1,
10 "agentId": "agent-12345",
11 "parametersSchema": null,
12 "createdAt": "2024-06-01T12:00:00Z"
13}

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
flowIdstringOptional
subAgentIdstringOptional
toolIdstringOptional
toolDescriptionstringOptional
parametersSchemaany or nullOptional
enabledbooleanOptional

Response

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

Errors

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