get_call_graph
Analyze a codebase symbol to map its callers, callees, or both, revealing how functions and classes connect. Trace dependencies and assess code impact.
Instructions
Get the call graph for a symbol: what calls it and what it calls.
Args:
symbol: The function/class name to analyze
directory: Path to the codebase directory
direction: 'callers' (who calls this), 'callees' (what this calls), or 'both'
Returns:
Call graph showing relationships
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>",
"directory": "<directory>"
},
"name": "get_call_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| direction | No | both | |
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |