lsp_references
Find all references to a symbol in a file by specifying its file path and position. Optionally include the declaration and limit the number of results.
Instructions
Request textDocument/references from the LSP server and return normalized locations.
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": {
"filePath": "<filePath>",
"position": "<position>"
},
"name": "lsp_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| position | Yes | Line/character position (zero-based) in the file. | |
| maxResults | No | Maximum number of results to return. | |
| includeDeclaration | No | Whether to include the declaration in the results. |