* 更新工具状态
(toolName: string, state: any)
| 85 | * 更新工具状态 |
| 86 | */ |
| 87 | updateToolState(toolName: string, state: any): void { |
| 88 | if (!this.contextData) { |
| 89 | throw new Error('上下文数据未初始化'); |
| 90 | } |
| 91 | |
| 92 | this.contextData.layers.tool.toolStates[toolName] = state; |
| 93 | this.contextData.metadata.lastUpdated = Date.now(); |
| 94 | this.recordAccess('tools'); |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * 获取工具状态 |
nothing calls this directly
no test coverage detected