register_sub_agent
Registers a new sub-agent as a child of the calling agent, adding it to the team directory so it can be listed and assigned tasks. Returns the created agent record.
Instructions
Register a new sub-agent as a child of the calling agent in your workspace, so it is listed in the team directory and by list_sub_agents and can be assigned tasks. Returns the created agent record.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"agent_type": "<agent_type>"
},
"name": "register_sub_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the sub-agent, as it should appear in the team directory. | |
| agent_type | Yes | Harness the sub-agent runs in: claude_code (Claude Code CLI), openclaw, cline, aider, or custom for anything else. | |
| capabilities | No | Optional key-value map of what the sub-agent can do, e.g. {"languages": ["go"]}, stored on its profile. |