repo.references
Locate every cross-file reference to a named symbol, returning file paths, line numbers, and confidence levels.
Instructions
Find all cross-file references to a named symbol using AST (Python) or lexical analysis. Returns file paths, line numbers, strategy, and confidence level per reference.
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": {
"symbol": "<symbol>"
},
"name": "repo.references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional file path to scope the reference search to one file. | |
| top_k | No | Maximum number of references to return. | |
| symbol | Yes | Symbol name to find references for (e.g. 'MyClass.my_method'). |