find_references
Find all references to a symbol using language-server index. Get token-capped file:line results, blast-radius summary, or call hierarchy to assess impact before editing.
Instructions
Every call site of a symbol (semantic, not grep) — pass symbol (a name); resolves the decl + returns all refs in one call. → capped file:line; detail=file|dir for a blast-radius summary; direction=callers|callees switches to a multi-hop call hierarchy. Use before changing a function.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | 0-based line. | |
| path | No | Source file (+line/character for an exact position, or with `symbol` to disambiguate an overload). | |
| depth | No | Call-hierarchy hops (default 2). | |
| detail | No | `file`|`dir` blast-radius summary. | |
| symbol | No | Symbol NAME — resolved via the index, no position needed. | |
| backend | No | ||
| character | No | 0-based column. | |
| direction | No | callers|callees call hierarchy. | |
| maxResults | No | ||
| projectPath | No | ||
| includeDeclaration | No |