callers
Find every call site of a JavaScript or TypeScript function, listing each calling function and line numbers. Excludes imports and type-only usages for direct caller results.
Instructions
Who calls this function? Example: callers(name="renderSidebar").
Narrower than references, since it leaves out imports and type-only usages and only lists actual call sites, each with the calling function and its call-site lines. name resolves the same way as symbol_info (dotted Class.method accepted, inherited members included; pass file_path to disambiguate a common name). query is accepted as an alias for name. JS/TS only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| query | No | ||
| file_path | No |