debug_get_span_tree
Trace failures and understand agent behavior by retrieving a hierarchical span tree of execution flow from live sessions.
Instructions
[Arch Debug] Arch connects to live sessions, traces failures, and inspects execution state. Get hierarchical span tree showing execution flow. Useful for understanding agent behavior.
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": "debug_get_span_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flat | No | Return as flat list with depth info instead of tree | |
| sessionId | No | Session ID (uses active session if not specified) |