get_type_definition
Get the definition location of a type at the cursor in TypeScript or JavaScript. Provide file content and cursor line/column to find the source definition.
Instructions
Get the definition location of the type at the cursor
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Cursor line (1-based) | |
| offset | Yes | Cursor column (1-based) | |
| filePath | Yes | File path (absolute or relative to project root) | |
| fileContent | Yes | File content (TypeScript/JavaScript source code) | |
| projectPath | No | Project root (directory with node_modules/tsconfig). When set, the server reads project files from disk so imports (e.g. zod) and cross-file features work. |