find_usages
Find all references to a symbol or file across codebases—imports, calls, renders, dispatches. Uses semantic matching instead of text grep to locate exact usages and avoid false positives.
Instructions
Find all references to a symbol or file (imports, calls, renders, dispatches). Use instead of Grep for symbol usages — semantic, not text matches. For raw text use search_text; for a bidirectional call graph use get_call_graph. Weakly-grounded text_matched edges into a name-colliding target are dropped by default (phantom god-node filter); include_ambiguous_text_matched: true keeps them. Read-only. Returns JSON: { references: [{ edge_type, resolution_tier, file, symbol }], total, truncated?, ambiguous_filtered? } — page caps at 50, total counts all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqn | No | Fully qualified name to find references for | |
| limit | No | Max references returned (default 50). | |
| file_path | No | File path to find references for | |
| symbol_id | No | Symbol ID to find references for | |
| detail_level | No | Output verbosity. "minimal" returns ~40-60% fewer tokens (drops scores, fqn, signatures, summaries — keeps name/file/line). Use when you only need to pick a candidate before drilling in with get_symbol. Default: "default". | |
| include_ambiguous_text_matched | No | Keep text_matched edges whose target name collides with >=3 other symbols (default false — they produce phantom god-nodes). |