lsp_references
Find all usages of a symbol across the workspace to assess refactoring impact. Optionally include the declaration.
Instructions
Find All References: list every usage of the symbol across the workspace.
Like Shift+F12 in an IDE.
Confidence: HIGH. Reliable for assessing impact before refactoring.
Args: include_declaration: Whether to include the definition site in the results.
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_path": "<file_path>",
"line": "<line>",
"character": "<character>"
},
"name": "lsp_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| character | Yes | ||
| file_path | Yes | ||
| include_declaration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||