find_references
Find all references to a symbol across ingested code files. Combines import metadata scans and full-text search to return file paths, context snippets, and reference types, deduplicated by location.
Instructions
Find all references to a symbol across ingested code files using a two-phase strategy: (1) import metadata scan for exact import name matches, (2) FTS text search for in-code mentions. Results merge with import references first, deduplicated by (filePath, chunkIndex). Returns { totalMatches, matches: [{ filePath, chunkIndex, referenceType, context?, importSource?, isDefault?, isNamespace? }] }. Only works for code files ingested with AST-level chunking.
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": {
"symbolName": "<symbolName>"
},
"name": "find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matches (default 10, range 1-50). | |
| symbolName | Yes | Symbol name to search for. Exact match in imports; substring match in text mentions (FTS). Example: "useEffect". |