get_symbol_refs
Finds every cross-file reference to a symbol, returning file, line, and code snippet while excluding its own definition. Use it to assess impact before refactoring or renaming.
Instructions
RELATIONSHIPS between symbols: who uses/calls/references a given symbol across the whole project (cross-file). Returns every usage point with file, exact line and the code snippet of that line - like IDE 'find references'. Use when refactoring, renaming, or understanding impact: 'who calls foo?', 'where is X used?'. Self-definitions are excluded.
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": {
"path": "<path>",
"simbolo": "<simbolo>"
},
"name": "get_symbol_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path where the symbol is defined (as ingested) | |
| limit | No | ||
| simbolo | Yes | Symbol name to find references for |