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.
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". |