MCPcopy Index your code
hub / github.com/github/copilot-sdk / addBuiltIn

Method addBuiltIn

nodejs/src/toolSet.ts:68–75  ·  view source on GitHub ↗
(nameOrNames: string | readonly string[])

Source from the content-addressed store, hash-verified

66 */
67 addBuiltIn(names: readonly string[]): ToolSet;
68 addBuiltIn(nameOrNames: string | readonly string[]): ToolSet {
69 const names = typeof nameOrNames === "string" ? [nameOrNames] : nameOrNames;
70 for (const name of names) {
71 validateName("builtin", name);
72 this.items.push(`builtin:${name}`);
73 }
74 return this;
75 }
76
77 /**
78 * Adds a custom tool pattern. Matches tools registered via the SDK's

Callers 3

toolSet.test.tsFile · 0.45
tools.e2e.test.tsFile · 0.45

Calls 2

validateNameFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected