MCPcopy Create free account
hub / github.com/echoVic/blade-code / updateToolState

Method updateToolState

src/context/storage/MemoryStore.ts:87–95  ·  view source on GitHub ↗

* 更新工具状态

(toolName: string, state: any)

Source from the content-addressed store, hash-verified

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 * 获取工具状态

Callers

nothing calls this directly

Calls 1

recordAccessMethod · 0.95

Tested by

no test coverage detected