open_document
Open a file in the LSP server to enable analysis and prepare it for diagnostics, hover information, or completions. Specify language_id to select the correct language service.
Instructions
Open a file in the LSP server for analysis. Use this tool before performing operations like getting diagnostics, hover information, or completions for a file. The file remains open for continued analysis until explicitly closed. The language_id parameter tells the server which language service to use (e.g., 'typescript', 'javascript', 'haskell'). The LSP server starts automatically on MCP launch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| file_path | Yes | ||
| language_id | No |