get_references
Find all usages of a symbol in a TypeScript project, including definitions, reads, and writes. Target by symbol name or file coordinates.
Instructions
Find all usages of a symbol across the project. Each reference includes its kind: "definition", "read", or "write", and the source line it sits on. Target it either by "symbol" name (preferred: no need to know coordinates) or by explicit file/line/column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to the file (relative to project root) | |
| line | No | Line number (1-based) | |
| limit | No | Maximum results to return (default: 200, max: 2000) | |
| column | No | Column number (1-based) | |
| offset | No | Number of results to skip, for paging through a large set (default: 0) | |
| symbol | No | Name of the symbol to target, instead of line/column. Qualify as "Container.member" (e.g. "UserService.getUser") to disambiguate. Combine with "file" to restrict the search to one file. An ambiguous name returns an error listing the candidates. | |
| contextLines | No | Include this many source lines either side of each result (default: 0). Every result already carries its own line in "text". |