MCPcopy Create free account
hub / github.com/angular/angular / executeTool

Method executeTool

packages/private/testing/src/webmcp_mock.ts:45–50  ·  view source on GitHub ↗
({name}: {name: string}, input: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

43 }
44
45 async executeTool({name}: {name: string}, input: Record<string, unknown> = {}): Promise<string> {
46 const tool = this.tools.get(name)!;
47 const output = await tool.execute(input, {signal: new AbortController().signal});
48
49 return JSON.stringify(output);
50 }
51}
52
53/**

Callers 3

executeToolFunction · 0.80

Calls 2

getMethod · 0.65
executeMethod · 0.65

Tested by 1

executeToolFunction · 0.64