trace_callers
Trace all callers and importers of a function or component to identify impacted tests and entry points.
Instructions
Trace what depends on a function/component (incoming edges). Shows all callers, importers, and parent components. Use this to answer: "I changed function X, what tests need updating?" or "What entry points reach this code?"
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": {
"codebase": "<codebase>",
"symbol": "<symbol>"
},
"name": "trace_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codebase | Yes | Codebase name (the name you used when calling index_codebase) | |
| symbol | Yes | Fully qualified symbol name or partial name for search | |
| max_depth | No | Maximum traversal depth (default: 5, max: 20) | |
| edge_kinds | No | Filter by edge kind | |
| symbol_kinds | No | Filter by symbol kind |