### 工具lsp
与语言服务器协议（LSP）服务器交互，获取代码智能功能。

**支持的操作**：
- gotoDefinition：查找符号定义位置
- findReferences：查找符号的所有引用
- hover：获取悬停信息（文档、类型信息）
- documentSymbol：获取文档中的所有符号（函数、类、变量）
- workspaceSymbol：在整个工作区搜索符号
- gotoImplementation：查找接口或抽象方法的实现
- callHierarchy：获取位置的调用层次结构项（函数/方法）

**所有操作需要**：
- `filePath`：要操作的文件
- `line`：行号（从 1 开始，编辑器中显示的那样）
- `character`：字符偏移（从 1 开始）

**注意**：需要为文件类型配置 LSP 服务器。如果文件类型没有可用的服务器，返回错误。

举例：
```xml
<react>
  <thought>查找 executeCommand 函数的定义位置</thought>
  <action>
    <action_name>lsp</action_name>
    <action_input>
      <action>gotoDefinition</action>
      <filePath>E:\ai\txcode\src\components\App.tsx</filePath>
      <line>42</line>
      <character>20</character>
    </action_input>
  </action>
  <keep_context>true</keep_context>
</react>
```

参数说明：

| 字段 | 类型 | 说明 |
|------|------|
| `action` | string | 要执行的 LSP 操作（必需）：gotoDefinition, findReferences, hover, documentSymbol, workspaceSymbol, gotoImplementation, callHierarchy |
| `filePath` | string | 文件路径（gotoDefinition, findReferences, hover, documentSymbol, gotoImplementation, callHierarchy 操作需要） |
| `line` | number | 行号（1-indexed，用于 gotoDefinition, findReferences, hover, gotoImplementation, callHierarchy） |
| `character` | number | 字符位置（0-indexed，用于 gotoDefinition, findReferences, hover, gotoImplementation, callHierarchy） |
| `query` | string | 搜索查询（workspaceSymbol 操作需要） |
