v1
latestOpenAPI 3.0.02026-08-04891301.4 MBCreate an agent tool
Creates a new tool and attaches it to the specified agent. Tools can be either "builtin" (a platform-provided capability identified by builtin_tool_key) or "custom" (a caller-defined tool with its own name, description, parameter schema, and handler).
New tools are created in "draft" status by default unless status: "active" is explicitly supplied. Draft tools are not exposed to the LLM during agent runs; call the activate endpoint to promote them.
For built-in tools that support multiple instances per agent (those whose catalog entry has a multi_instance_mode), supply name_prefix to namespace the LLM-facing tool names. Requires app scope.
post/api/v1/agents/{agent}/agent_tools
Path parameters
agentstring required
Agent ID (agt_...) to attach the tool to.
Request body
Example request
{
"async": true,
"builtin_tool_config": {},
"builtin_tool_key": "string",
"config": "string",
"description": "An example description.",
"handler_type": "string",
"kind": "string",
"lookup_key": "string",
"metadata": {
"key": "value"
},
"name": "Example Name",
"name_prefix": "string",
"parameters": {},
"status": "string"
}Response
Successful response
Example response
{
"agent": "agi_0aBcDeFgHiJkLmNoPqRsTu",
"app": "dap_0aBcDeFgHiJkLmNoPqRsTu",
"async": true,
"builtin_tool_config": {},
"builtin_tool_key": "string",
"config": "cfg_0aBcDeFgHiJkLmNoPqRsTu",
"created_at": "2024-01-01T00:00:00Z",
"description": "An example description.",
"handler_type": "http",
"id": "atl_0aBcDeFgHiJkLmNoPqRsTu",
"instruction": "string",
"kind": "builtin",
"last_applied_template_config": "cfg_0aBcDeFgHiJkLmNoPqRsTu",
"lookup_key": "string",
"metadata": {
"key": "value"
},
"name": "Example Name",
"name_prefix": "string",
"parameters": {},
"parameters_config": "cfg_0aBcDeFgHiJkLmNoPqRsTu",
"status": "active",
"updated_at": "2024-01-01T00:00:00Z"
}