call_tree
Reveal transitive call chains from leaf helpers to entry points for a function. Use to debug, assess refactor impact, and verify code reachability.
Instructions
Recursive depth-N call hierarchy for a function. Shows who calls who transitively — complements find_usages (flat one-level refs) by revealing full chains from leaf helpers to entry points. Use for debugging, refactor impact, and verifying reachability.
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": {
"symbol": "<symbol>"
},
"name": "call_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Function / method name, unqualified (e.g. `fetchUser`). | |
| depth | No | Walk-up depth. Default 3, max 6. |