get_call_graph
Build a bidirectional call graph centered on a symbol, revealing its callers and callees up to 20 levels deep. Trace control flow and dependency paths directly from source code.
Instructions
Build a bidirectional call graph centered on a symbol (who calls it + what it calls). Each branch keeps its direction: depth 2 = callers of callers, callees of callees. Use to understand control flow through a function. For flat list of all references use find_usages instead. Read-only. Returns JSON: { root: { symbol_id, name, calls: [...], called_by: [...] } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqn | No | Fully qualified name to center the graph on | |
| depth | No | Traversal depth on each side (default 2) | |
| symbol_id | No | Symbol ID to center the graph on |