Skip to main content
POST
Add Sub-Agent Tool

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

parent_agent_id
integer
required
sub_agent_id
integer
required

Body

application/json
agent_tool_id
integer
required

ID of the agent tool to attach to the sub-agent.

Required range: x >= 1
option
enum<string> | null

How the sub-agent can use the tool: register it for LLM tool calling, execute it directly, or both.

Available options:
register,
execute,
both

Response

Successful Response

success
boolean
required

Whether the request was successful.

data
SubAgentToolMutationData · object
required

Sub-agent tool mutation results.

error_type
string | null

Type of error if the request failed.

error_message
string | null

Error message or informational message.