find_references
Lists every occurrence of an identifier in a source file by line and source text, in file order, to survey uses before a rename. Read-only and syntactic; not scope-aware or cross-file.
Instructions
List each occurrence of an identifier in a source file as line N: <source line>, in file order. Read-only and syntactic, with no scope
analysis, so unrelated identifiers of the same name show up too. C++
destructors and operators go by their list_symbols names (~A,
operator==).
Use this when: surveying a name's uses in a file before a rename. Don't use this when: you need references across files or by scope (use a language server).
Example: target="LRUCache"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Identifier to find, a plain name, not a dotted path (e.g. 'LRUCache'). | |
| file_path | Yes | Absolute path to the source or config file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |