get_completions
Retrieve code completion suggestions at any cursor position in TypeScript/JavaScript. Supply file contents, line, and offset to get accurate completions, with optional project path for cross-file imports.
Instructions
Get completion suggestions (completion list) at the given position
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. |