call_chain
Trace code impact by listing callers and callees for a line or symbol, revealing dependencies and change effects.
Instructions
Callers/callees at a line; use when you know line, not symbol name. Symbol-level? impact_analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path relative to workspace_dir (e.g. "src/auth.py") | |
| line | No | Line number. OR symbol (at least one required). | |
| depth | No | Call chain depth (default: 2, max: 10) | |
| symbol | No | Symbol name. OR line. Both? symbol wins. | |
| max_callees | No | Max callees to return (default: 20) | |
| max_callers | No | Max callers to return (default: 20) | |
| workspace_dir | Yes | REQUIRED: project root (abs). reindex first if new. |