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

Function isWriteAction

apps/sim/lib/copilot/tools/server/router.ts:133–139  ·  view source on GitHub ↗
(toolName: string, action: string | undefined)

Source from the content-addressed store, hash-verified

131}
132
133function isWriteAction(toolName: string, action: string | undefined): boolean {
134 const writeActions = WRITE_ACTIONS[toolName]
135 if (!writeActions) return false
136 // '*' means the tool is always a write operation regardless of action field
137 if (writeActions.includes('*')) return true
138 return Boolean(action && writeActions.includes(action))
139}
140
141/** Registry of all server tools. Tools self-declare their validation schemas. */
142const baseServerToolRegistry: Record<string, BaseServerTool> = {

Callers 1

routeExecutionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected