(toolId: string, _workspaceId?: string)
| 285 | |
| 286 | // Get a tool by its ID |
| 287 | export 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 |
| 297 | export function createToolConfig( |
no test coverage detected