call_graph
Follow function or method call relationships in either direction—callees or callers—up to a set depth to map dependencies and assess change impact.
Instructions
Follow the calls of a function or method.
Args: symbol: Function or method name, qualified or bare. direction: "callees" (what it calls) or "callers" (what calls it). depth: Maximum number of hops (default 1).
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_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| symbol | Yes | ||
| direction | No | callees | |
| workspace | No | Project path (default: this project) | |
| max_tokens | No |