MCPcopy Create free account
hub / github.com/apache/maka / callTool

Function callTool

packages/code-mode/src/__tests__/code-mode.test.ts:492–500  ·  view source on GitHub ↗
(_name: string, input: unknown)

Source from the content-addressed store, hash-verified

490 releaseFirst = resolve;
491 });
492 const callTool = async (_name: string, input: unknown) => {
493 const id = (input as { id: string }).id;
494 started.push(id);
495 if (id === 'first') {
496 firstStarted();
497 await firstCanFinish;
498 }
499 return id;
500 };
501 const run = (id: string) =>
502 execute(`return await tools.hold({ id: '${id}' });`, {
503 tools: [{ name: 'hold' }],

Callers

nothing calls this directly

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected