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

Method getAllTools

src/agent/MCPComponent.ts:252–258  ·  view source on GitHub ↗

* 获取所有可用工具

()

Source from the content-addressed store, hash-verified

250 * 获取所有可用工具
251 */
252 getAllTools(): MCPToolInfo[] {
253 const allTools: MCPToolInfo[] = [];
254 for (const tools of this.tools.values()) {
255 allTools.push(...tools);
256 }
257 return allTools;
258 }
259
260 /**
261 * 读取资源内容

Callers 4

searchToolsMethod · 0.95
mainFunction · 0.80
demonstrateToolWorkflowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected