Generate Call Tree
call_treeGenerate upstream caller and downstream callee trees for a specific code symbol. Use when visualizing hierarchical call chains and understanding deep execution flows before code changes.
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": {
"namespace": "<namespace>",
"symbol": "<symbol>"
},
"name": "call_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum traversal depth (default 3). | |
| symbol | Yes | Root symbol for the call tree. | |
| direction | No | Call tree direction. | both |
| namespace | Yes | Logical workspace namespace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| callees | Yes | ||
| callers | Yes | ||
| namespace | Yes |