Find call sites of a function
callersFind call sites of a function, showing file, line, language, caller, and confidence. Filter results by file or language for targeted call-graph analysis.
Instructions
Heuristic (name-based) call sites of a function in the indexed workspace: each hit gives file, line, language, enclosing caller function and receiver object, plus a confidence tier (exact when the receiver's declared type or an import resolves the callee, likely for same-dir/unique names, name as fallback). Same-named methods of different classes are mixed in one result; filter by resolved_to for a precise call graph. Accepts optional file/language filters. If the index for root does not exist yet it is built automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | restrict to call sites in this file | |
| name | Yes | callee function name | |
| root | No | index root to query; required when several indexes exist | |
| limit | No | max results returned (default 50, hard max 200) | |
| offset | No | skip the first N results before applying limit | |
| language | No | restrict to one language |