getReferences
Finds all references to a symbol at a specific position in a TypeScript file. Supports optional limits and node_modules inclusion for code navigation.
Instructions
Find all references to a symbol at a position
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | Column number (1-indexed), overrides :col in file | |
| file | Yes | File path with optional :line:col suffix (e.g., "src/user.ts:10:5") | |
| line | No | Line number (1-indexed), overrides :line in file | |
| content | No | File content for virtual/unsaved files | |
| maxResults | No | Maximum number of results | |
| projectRoot | No | Project root directory (auto-detected if omitted) | |
| includeNodeModules | No | Include references in node_modules |