find_callers
Lists every direct call site of a function or class, showing caller, location, and callee so you can inspect usage before changing a signature or behavior.
Instructions
Who calls this? Lists every call to the definitions matching name: the calling symbol, its kind, the repository, path and line of the call, and which definition is called. Use it before changing a function's signature or behavior, to see its direct call sites. For everything a change could reach through chains of calls, use impact_of; for what this symbol itself calls, use find_callees. Calls come from the parse tree, so comments, docstrings and strings never count. A call at module level has kind file and name (module). At most 200 rows; truncated is true when more exist. Next step: get_symbol on a caller to read it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A bare name (url_for), which matches url_for and every Class.url_for, or a qualified name (Flask.url_for), which matches only that definition. Case-sensitive. | |
| repo | No | Look only in this registered repository, for example flask. list_repositories gives the valid names. Default: all repositories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| status | Yes | ||
| results | Yes | ||
| truncated | No |