MCPcopy Create free account
hub / github.com/github/copilot-sdk / AddCustom

Method AddCustom

go/toolset.go:66–70  ·  view source on GitHub ↗

AddCustom adds a custom-tool pattern. Matches tools registered via [SessionConfig.Tools] or via custom agents.

(name string)

Source from the content-addressed store, hash-verified

64// AddCustom adds a custom-tool pattern. Matches tools registered via
65// [SessionConfig.Tools] or via custom agents.
66func (s *ToolSet) AddCustom(name string) *ToolSet {
67 validateToolName("custom", name)
68 s.items = append(s.items, "custom:"+name)
69 return s
70}
71
72// AddMCP adds an MCP tool pattern. Matches tools advertised by any configured
73// MCP server.

Callers 3

TestToolsE2EFunction · 0.80

Calls 1

validateToolNameFunction · 0.85

Tested by 3

TestToolsE2EFunction · 0.64