find_usages
Locate every use of a function, class, type, or constant, including re-exports and aliases, grouped by file with line:column and usage kind. Check before changing a symbol or checking affected tests.
Instructions
Lists every place that uses one function, class, type or constant, followed through re-exports and aliases: grouped by file, each use with its line:column and kind (import, re-export, call, type, extends, reference). Use it before changing a symbol, and to see which tests reach it. A method call whose receiver type cannot be seen is marked unresolved. For where a name is defined use find_definitions; for the reach of a whole file use analyze_impact; for the call graph alone use trace_calls. symbol is a bare name when one file defines it; when several do, or for a method, write <file>::Name or <file>::Class.method, with the path relative to the repository root. Returns plain text. A long list stops at 200 items unless all is true. A name the graph does not hold is answered with an error line, with suggestions when similar names exist.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "find_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | List everything instead of stopping at 200 items. | |
| symbol | Yes | Name, <file>::Name or <file>::Class.method (a file path or module ID). |