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

Method getTools

packages/private/testing/src/webmcp_mock.ts:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }
30
31 async getTools(): ReturnType<ModelContext['getTools']> {
32 return Array.from(this.tools.values()).map(
33 ({name, title = '', description, inputSchema, annotations}) => ({
34 name,
35 title,
36 description,
37 inputSchema,
38 annotations,
39 origin: location.origin,
40 window,
41 }),
42 );
43 }
44
45 async executeTool({name}: {name: string}, input: Record<string, unknown> = {}): Promise<string> {
46 const tool = this.tools.get(name)!;

Callers 4

executeToolFunction · 0.80
webmcp.spec.tsFile · 0.80

Calls 3

mapMethod · 0.80
valuesMethod · 0.80
fromMethod · 0.45

Tested by 1

executeToolFunction · 0.64