get_references
Find all usages of a symbol in code by providing its file path and position. Returns a list of locations where the symbol is referenced, making it simple to trace dependencies and impact.
Instructions
Find all references to a symbol. Returns a list of locations where the symbol is used. Tip: Use 'search_in_file' to find the exact line and character of the symbol definition or usage.
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>",
"character": "<character>"
},
"name": "get_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | The 0-based line number of the symbol | |
| filePath | Yes | The absolute path to the file containing the symbol definition or usage | |
| character | Yes | The 0-based character offset of the symbol |