From a411d69f68157c3704cda60810cda6b35ee32aff Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Thu, 5 Feb 2026 20:37:52 -0800 Subject: [PATCH] Updated mcp --- apps/sim/lib/copilot/tools/mcp/definitions.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/sim/lib/copilot/tools/mcp/definitions.ts b/apps/sim/lib/copilot/tools/mcp/definitions.ts index 226662dbf..f54273ce6 100644 --- a/apps/sim/lib/copilot/tools/mcp/definitions.ts +++ b/apps/sim/lib/copilot/tools/mcp/definitions.ts @@ -153,7 +153,7 @@ export const DIRECT_TOOL_DEFS: DirectToolDef[] = [ name: 'move_workflow', toolId: 'move_workflow', description: - 'Move a workflow into a different folder. Set folderId to null to move to the workspace root.', + 'Move a workflow into a different folder. Omit folderId or pass empty string to move to workspace root.', inputSchema: { type: 'object', properties: { @@ -162,18 +162,18 @@ export const DIRECT_TOOL_DEFS: DirectToolDef[] = [ description: 'The workflow ID to move.', }, folderId: { - type: ['string', 'null'], - description: 'Target folder ID, or null to move to workspace root.', + type: 'string', + description: 'Target folder ID. Omit or pass empty string to move to workspace root.', }, }, - required: ['workflowId', 'folderId'], + required: ['workflowId'], }, }, { name: 'move_folder', toolId: 'move_folder', description: - 'Move a folder into another folder. Set parentId to null to move to the workspace root.', + 'Move a folder into another folder. Omit parentId or pass empty string to move to workspace root.', inputSchema: { type: 'object', properties: { @@ -182,11 +182,11 @@ export const DIRECT_TOOL_DEFS: DirectToolDef[] = [ description: 'The folder ID to move.', }, parentId: { - type: ['string', 'null'], - description: 'Target parent folder ID, or null to move to workspace root.', + type: 'string', + description: 'Target parent folder ID. Omit or pass empty string to move to workspace root.', }, }, - required: ['folderId', 'parentId'], + required: ['folderId'], }, }, ]