find_references
Find all textual occurrences of a named symbol in the indexed corpus. Use word-boundary matching to ensure 'log' doesn't match 'logger', ideal for answering 'where is X used?' or 'who calls X?'.
Instructions
List every textual occurrence of a named symbol in the indexed corpus. Use INSTEAD of grep -n "X" when the user asks "who calls X?" or "where is X used?". Returns SymbolRef[] with path, line, snippet. Word-boundary matched, so 'log' won't return 'logger' or 'log_format'.
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": {
"name": "<name>"
},
"name": "find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact identifier to find references for. | |
| max | No |