{"version":"2.0.30","anchor":"lsp-language-server-protocol-tool","canonical_anchor":"lsp-language-server-protocol-tool","heading":"LSP (Language Server Protocol) Tool","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.30\/e\/lsp-language-server-protocol-tool","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.30","markdown":"### LSP (Language Server Protocol) Tool\n\n**What:** A new tool that integrates Language Server Protocol servers to provide code intelligence features directly to Claude.\n\n**How to use:**\n\n`# Claude can now use LSP operations when analyzing code # The tool works automatically when LSP servers are configured` **Supported operations:**\n\n- `goToDefinition`: Find where a symbol is defined\n- `findReferences`: Find all references to a symbol\n- `hover`: Get hover information (documentation, type info) for a symbol\n- `documentSymbol`: Get all symbols (functions, classes, variables) in a document\n- `workspaceSymbol`: Search for symbols across the entire workspace\n\n**Configuration:** LSP servers can be configured in two ways:\n\n- **Plugin-based configuration:** Plugins can define LSP servers via `.lsp.json` files or in their manifest's `lspServers` property\n- **Project configuration:** LSP server settings include command, args, supported languages, transport type (stdio\/socket), initialization options, and workspace settings\n\n**Requirements:**\n\n- All operations require `filePath`, `line` (0-indexed), and `character` (0-indexed) parameters\n- LSP servers must be configured for the file type; operations will return an error if no server is available\n\n**Details:**\n\n- **Evidence**: LSP tool definition at `at1()` at line 455338, LSP server manager initialization at line 454707\n- Plugin LSP configuration loading at `Ig2()` at line 454527\n- Comprehensive error handling for LSP failures including: `lsp-config-invalid`, `lsp-server-start-failed`, `lsp-server-crashed`, `lsp-request-timeout`, `lsp-request-failed`\n- LSP URI decoding support at line 205830 (`uO0()` function)"}