lsp_references
Find all references to a symbol at a given file and line using language server analysis for exact results, not text search.
Instructions
All references to the symbol at file:line, resolved by the language server (exact, not text search).
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": {
"file": "<file>",
"line": "<line>"
},
"name": "lsp_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Source file | |
| line | Yes | 1-based line | |
| limit | No | ||
| symbol | No | Identifier on that line; its column is found automatically | |
| character | No | 1-based column (or give symbol instead) | |
| includeDeclaration | No |