list_sub_agents
Lists sub-agents registered under a parent agent—direct children by default, or the full descendant subtree with recursive=true.
Instructions
List the sub-agents registered under an agent (see register_sub_agent): direct children only, or the whole subtree with recursive=true. get_team_directory lists every member of the workspace instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_sub_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | UUID of the parent agent whose sub-agents to list. Omit for the calling agent; get_team_directory gives other agents' ids. | |
| recursive | No | Return all descendants (up to 10 levels deep) instead of direct children only. Default false. |