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

Function getTool

apps/sim/tools/utils.ts:287–294  ·  view source on GitHub ↗
(toolId: string, _workspaceId?: string)

Source from the content-addressed store, hash-verified

285
286// Get a tool by its ID
287export function getTool(toolId: string, _workspaceId?: string): ToolConfig | undefined {
288 // Check for built-in tools
289 const builtInTool = tools[resolveToolId(toolId)]
290 if (builtInTool) return builtInTool
291
292 // If not found or running on the server, return undefined
293 return undefined
294}
295
296// Helper function to create a tool config from a custom tool
297export function createToolConfig(

Callers 11

index.test.tsFile · 0.90
executeToolFunction · 0.90
getToolParametersConfigFunction · 0.90
getSubBlocksForToolInputFunction · 0.90
getToolOutputsFunction · 0.90
validateToolReferenceFunction · 0.90
collectBlockFieldIssuesFunction · 0.90
executeMethod · 0.90
executeMethod · 0.90
BlockToolRowFunction · 0.90

Calls 1

resolveToolIdFunction · 0.70

Tested by

no test coverage detected