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

Method getToolInfo

src/agent/ToolComponent.ts:186–191  ·  view source on GitHub ↗

* 获取工具信息

(toolName: string)

Source from the content-addressed store, hash-verified

184 * 获取工具信息
185 */
186 public getToolInfo(toolName: string): ToolDefinition | undefined {
187 if (!this.toolManager) {
188 throw new Error('工具组件未初始化');
189 }
190 return this.toolManager.getTool(toolName);
191 }
192
193 /**
194 * 启用/禁用工具

Callers

nothing calls this directly

Calls 1

getToolMethod · 0.80

Tested by

no test coverage detected