MCPcopy Create free account
hub / github.com/chieapp/chie / getToolByName

Method getToolByName

src/controller/tool-manager.ts:22–27  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

20 }
21
22 getToolByName(name: string) {
23 const tool = this.#tools[name];
24 if (!tool)
25 throw new Error(`There is no Tool named "${name}".`);
26 return tool;
27 }
28
29 getToolSelections(): Selection[] {
30 return Object.values(this.#tools).map(tool => ({name: tool.displayName, value: tool.name}));

Callers 3

unregisterToolMethod · 0.95
executeToolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected