callers
Find actual call sites of a function or method to identify who calls it, excluding imports and type-only usages. Pass file_path to disambiguate a common name.
Instructions
Who calls this function? Example: callers(name="create_user").
Narrower than references, since it leaves out imports and type-only usages and only lists actual call sites.
name resolves the same way as symbol_info (dotted Class.method accepted;
pass file_path to disambiguate a common name). query is accepted as an
alias for name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| query | No | ||
| file_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |