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

Function executeTool

packages/forms/signals/test/web/webmcp.spec.ts:364–368  ·  view source on GitHub ↗
(toolName: string, args: string)

Source from the content-addressed store, hash-verified

362}
363
364async function executeTool(toolName: string, args: string) {
365 const toolsForSubmit = await getModelContext().getTools();
366 const testFormSubmitTool = toolsForSubmit.find((t) => t.name === toolName)!;
367 return getModelContext().executeTool!(testFormSubmitTool, args);
368}

Callers 1

webmcp.spec.tsFile · 0.85

Calls 2

getModelContextFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected