findReferences
Locate all references to a symbol in code by specifying file path, line, and column number. Uses VS Code LSP for accurate results.
Instructions
Find all references to a symbol at a given position using VS Code LSP.
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>",
"line": "<line>",
"column": "<column>"
},
"name": "findReferences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) | |
| column | Yes | Column (1-based) | |
| cursor | No | Cursor from previous call's nextCursor. Omit on first call. | |
| filePath | Yes | Workspace or absolute path |