trace_calls
Find all callers or callees of a function and return a call tree to analyze code dependencies. Set direction and depth to focus the trace.
Instructions
Find all callers (who calls this?) or callees (what does this call?) of a function. Returns a call tree.
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": {
"function_name": "<function_name>"
},
"name": "trace_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Max traversal depth (1-5) | |
| project | No | Project name | default |
| direction | No | inbound=callers, outbound=callees, both=all | both |
| function_name | Yes | Function or method name to trace |