get_definition
Find the definition location of a symbol at a cursor position in TypeScript/JavaScript code. Provide file path, content, line, and offset to get the symbol's definition file and coordinates.
Instructions
Get the definition location of the symbol at the cursor (Go to Definition)
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. |