Call graph
graphTrace function callers and callees, list transitive dependents, and inspect references before changing a shared symbol to see what breaks.
Instructions
Trace the call graph: who calls a function (direction='callers') or what
it calls (direction='callees'). With transitive=true it lists everything that
depends on the symbol, directly or indirectly; use that before you change a
signature or rename, move or delete a shared function ("what breaks if I
change X"). A callers result also has references: every use of the name as a
whole word (source lines with their code, test files as counts), so you do not
need a grep to check it. Edges are static, so calls through callbacks,
reflection or dynamic dispatch are missing from the caller list; references
still shows those lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | 'callers' (who calls this) or 'callees' (what this calls) | callers |
| transitive | No | True = everything that depends on the symbol, directly or indirectly. Use before changing a shared symbol. Only valid with direction='callers'. | |
| symbol_name | Yes | Name of the function/symbol to trace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||