get_session_agent_tree
Retrieves the supervisor and sub-agent tree across all turns in a multi-turn session using parent-session lineage, closing the agent hierarchy when per-execution traces fall short.
Instructions
Agent tree of a session (by parent-session lineage): supervisor + sub-agents across all turns — works where per-execution traces can't close the tree in multi-turn sessions
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": {
"session_id": "<session_id>"
},
"name": "get_session_agent_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Anchor session_id, usually the supervisor's session | |
| execution_id | No | Optionally restrict the tree to one execution |