Find semantic symbol references
ast_find_referencesFind type-resolved references to a symbol in a TypeScript/JavaScript project, returning bounded project-relative locations and default declaration impact for change assessment.
Instructions
Finds type-resolved references and returns bounded project-relative locations, including declaration impact by default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_root": "<project_root>",
"file_path": "<file_path>",
"symbol_path": "<symbol_path>"
},
"name": "ast_find_references"
}
}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 |