Call graph
graphTrace function callers and callees, including transitive dependencies, to see what breaks before changing shared code. Results include whole-word references and method overrides.
Instructions
Trace the call graph: who calls a function (direction='callers') or what it
calls ('callees'). transitive=true covers everything that depends on it; use it
before you change, rename or delete a shared function ("what breaks if I change
X"). A callers result also has references, the whole-word uses of the name,
so no grep is needed. For a method, pass Class.method: the result also lists the
overrides in subclasses. Edges are static: calls through callbacks, reflection
or dynamic dispatch show only in references.
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_name": "<symbol_name>"
},
"name": "graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | 'callers' or 'callees' | callers |
| transitive | No | All direct and indirect dependents. Only with direction='callers'. | |
| symbol_name | Yes | Function or symbol to trace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||