references
Locate every indexed reference to a declaration across module and translation units, providing source locations.
Instructions
Find indexed references to a declaration across module units and translation units.
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>"
},
"name": "references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| line | No | 1-based line | |
| needle | No | Text to locate instead of line/character | |
| character | No | 1-based UTF-16 character | |
| occurrence | No | ||
| includeDeclaration | No |