Find semantic symbol references
ast_find_referencesLocate type-resolved references across a TypeScript/JavaScript project and return bounded, project-relative file locations. Includes declaration impact by default so you can quickly assess where a symbol is used and affected.
Instructions
Finds type-resolved references and returns bounded project-relative locations, including declaration impact by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to return (1-500). | |
| offset | No | Zero-based result offset. | |
| file_path | Yes | File containing the declaration. | |
| symbol_path | Yes | Exact symbol path returned by an outline or symbol search. | |
| project_root | Yes | Absolute project directory containing tsconfig.json, or the config path. | |
| include_declaration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| symbol | Yes | ||
| has_more | Yes | ||
| references | Yes | ||
| next_offset | Yes | ||
| affected_files | Yes | ||
| reference_count | Yes | ||
| declaration_count | Yes |