getDefinition
Retrieve definition locations for a symbol at a specific position in a TypeScript file. Enables jump-to-definition navigation for both saved and unsaved files.
Instructions
Get the definition location(s) for a symbol at a position (go-to-definition)
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 | |
| projectRoot | No | Project root directory (auto-detected if omitted) |