MCPcopy Index your code
hub / github.com/simstudioai/sim / registerHandler

Function registerHandler

apps/sim/lib/copilot/tool-executor/executor.ts:20–22  ·  view source on GitHub ↗
(toolId: string, handler: ToolHandler)

Source from the content-addressed store, hash-verified

18const handlerRegistry = new Map<string, ToolHandler>()
19
20export function registerHandler(toolId: string, handler: ToolHandler): void {
21 handlerRegistry.set(toolId, handler)
22}
23
24export function registerHandlers(entries: Record<string, ToolHandler>): void {
25 for (const [toolId, handler] of Object.entries(entries)) {

Callers 1

executor.test.tsFile · 0.90

Calls 1

setMethod · 0.65

Tested by

no test coverage detected