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

Method addCustom

nodejs/src/toolSet.ts:83–87  ·  view source on GitHub ↗

* Adds a custom tool pattern. Matches tools registered via the SDK's * `tools` option or via custom agents. * * @param name A specific custom tool name or `"*"` to match all custom tools.

(name: string)

Source from the content-addressed store, hash-verified

81 * @param name A specific custom tool name or `"*"` to match all custom tools.
82 */
83 addCustom(name: string): ToolSet {
84 validateName("custom", name);
85 this.items.push(`custom:${name}`);
86 return this;
87 }
88
89 /**
90 * Adds an MCP tool pattern. Matches tools advertised by any configured

Callers 2

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