Interact with Language Server Protocol for code intelligence.
## Operations
- `goto_definition` - Find where a symbol is defined
- `find_references` - Find all references to a symbol
- `hover` - Get documentation/type info for a symbol
- `document_symbols` - List all symbols in a file
- `workspace_symbols` - Search symbols across workspace
## Parameters
- `operation` (required): The LSP operation to perform
- `path` (required): File path
- `line` (required): Line number (1-based)
- `character` (required): Column number (1-based)
- `query` (optional): Search query for workspace_symbols
## Usage Notes
- LSP server must be configured for the file type
- Line and character are 1-based (as shown in editors)
- Use for navigating and understanding code structure
## Examples
Go to definition:
```json
{
"operation": "goto_definition",
"path": "/src/main.rs",
"line": 10,
"character": 15
}
```
Find all references:
```json
{
"operation": "find_references",
"path": "/src/lib.rs",
"line": 25,
"character": 8
}
```
Search workspace:
```json
{
"operation": "workspace_symbols",
"path": "/src/lib.rs",
"line": 1,
"character": 1,
"query": "Agent"
}
```