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

Function routeToolCall

apps/sim/lib/copilot/tool-executor/router.ts:20–24  ·  view source on GitHub ↗
(toolId: string)

Source from the content-addressed store, hash-verified

18}
19
20export function routeToolCall(toolId: string): ToolRoute | null {
21 const entry = getToolEntry(toolId)
22 if (!entry) return null
23 return { route: entry.route, mode: entry.mode, subagentId: entry.subagentId }
24}
25
26export function isSimExecuted(toolId: string): boolean {
27 return getToolEntry(toolId)?.route === 'sim'

Callers 1

partitionToolBatchFunction · 0.85

Calls 1

getToolEntryFunction · 0.85

Tested by

no test coverage detected