find_usages
Locate every place that references a symbol or file (imports, calls, renders, dispatches) by understanding semantic relationships, not just text matches. Optionally filter out ambiguous results.
Instructions
Find all places that reference a symbol or file (imports, calls, renders, dispatches). Use instead of Grep for symbol usages — understands semantic relationships, not just text matches. For bidirectional call graph use get_call_graph instead. By default, weakly-grounded text_matched edges into a target whose simple name collides with many other symbols are dropped (phantom god-node filter). Pass include_ambiguous_text_matched: true to keep them. Read-only. Returns JSON: { references: [{ file, line, kind, context }], total, ambiguous_filtered? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol ID to find references for | |
| fqn | Yes | Fully qualified name to find references for | |
| file_path | Yes | File path 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). |