find_references
Find all real references to a symbol, including dependency-injection registrations and interface implementations, before renaming or changing its signature.
Instructions
Find everything that references a symbol — the real call/usage sites the compiler sees, including dependency-injection registrations and interface implementations that a text search misses. Run this before renaming, changing a signature, or deleting.
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": {
"name": "<name>"
},
"name": "find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional: file containing the symbol | |
| line | No | Optional: 1-based line of the symbol | |
| name | Yes | Symbol name to look up | |
| limit | No | Max results (default 50) | |
| include_code | No | Show the source at each reference (default true). Leave it on: without it you must open each file to use the answer. |