Skip to content

Commit ff2f04f

Browse files
committed
Updates
1 parent b548483 commit ff2f04f

3 files changed

Lines changed: 58 additions & 44 deletions

File tree

apps/sim/lib/copilot/generated/tool-catalog-v1.ts

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -915,11 +915,13 @@ export const DiffWorkflows: ToolCatalogEntry = {
915915
properties: {
916916
ref1: {
917917
type: 'string',
918-
description: 'Base side: a version number (e.g. "3"), "live", or "draft".',
918+
description:
919+
'Base side (string): a version number (e.g. "3"), "live" (active deployment), or "draft" (current editor state).',
919920
},
920921
ref2: {
921922
type: 'string',
922-
description: 'Target side: a version number (e.g. "4"), "live", or "draft".',
923+
description:
924+
'Target side (string): a version number (e.g. "4"), "live" (active deployment), or "draft" (current editor state).',
923925
},
924926
workflowId: {
925927
type: 'string',
@@ -1724,7 +1726,7 @@ export const KnowledgeBase: ToolCatalogEntry = {
17241726
syncIntervalMinutes: {
17251727
type: 'number',
17261728
description:
1727-
'Sync interval in minutes: 60 (hourly), 360 (6h), 1440 (daily), 10080 (weekly), 0 (manual only). Default: 1440',
1729+
'Sync interval in minutes. Accepted values: 60 (hourly), 360 (6h), 1440 (daily), 10080 (weekly), 0 (manual only). Default: 1440',
17281730
default: 1440,
17291731
},
17301732
tagDefinitionId: {
@@ -1749,7 +1751,8 @@ export const KnowledgeBase: ToolCatalogEntry = {
17491751
},
17501752
workspaceId: {
17511753
type: 'string',
1752-
description: "Workspace ID (required for 'create', optional filter for 'list')",
1754+
description:
1755+
"Workspace ID. Required for 'create' when there is no workspace in context (otherwise the current workspace context is used); optional filter for 'list'.",
17531756
},
17541757
},
17551758
},
@@ -1777,7 +1780,7 @@ export const KnowledgeBase: ToolCatalogEntry = {
17771780
],
17781781
},
17791782
},
1780-
required: ['operation', 'args'],
1783+
required: ['operation'],
17811784
},
17821785
resultSchema: {
17831786
type: 'object',
@@ -1857,7 +1860,7 @@ export const LoadDeployment: ToolCatalogEntry = {
18571860
version: {
18581861
type: 'string',
18591862
description:
1860-
'The deployment version number to load (e.g. "5"), or "live" for the active deployment.',
1863+
'A string: a deployment version number (e.g. "5"), or "live" for the active deployment. (Unlike promote_to_live, which takes a numeric version, "live" is accepted here.)',
18611864
},
18621865
workflowId: {
18631866
type: 'string',
@@ -2099,7 +2102,7 @@ export const ManageMcpTool: ToolCatalogEntry = {
20992102
serverId: {
21002103
type: 'string',
21012104
description:
2102-
'The database ID of the MCP server. Required for edit and delete; omit for add and list.',
2105+
"The MCP server's id — the `id` field inside the VFS file agent/mcp-servers/{name}.json (the {name} filename is the display name, not the id). Required for edit and delete; omit for add and list.",
21032106
},
21042107
},
21052108
required: ['operation'],
@@ -2138,7 +2141,7 @@ export const ManageSkill: ToolCatalogEntry = {
21382141
skillId: {
21392142
type: 'string',
21402143
description:
2141-
'The ID of the skill. Must be the exact ID from the VFS or list. Required for edit and delete; omit for add and list.',
2144+
"The skill's id — the `id` field inside the VFS file agent/skills/{name}.json (the {name} filename is the display name, not the id). Required for edit and delete; omit for add and list.",
21422145
},
21432146
},
21442147
required: ['operation'],
@@ -2353,7 +2356,11 @@ export const PromoteToLive: ToolCatalogEntry = {
23532356
parameters: {
23542357
type: 'object',
23552358
properties: {
2356-
version: { type: 'number', description: 'The deployment version number to promote to live.' },
2359+
version: {
2360+
type: 'number',
2361+
description:
2362+
'The numeric deployment version number to promote to live (e.g. 5). "live" is not accepted here — pass the version number (use load_deployment to change the draft).',
2363+
},
23572364
workflowId: {
23582365
type: 'string',
23592366
description: 'Optional workflow ID. If not provided, uses the current workflow in context.',
@@ -2407,7 +2414,7 @@ export const QueryLogs: ToolCatalogEntry = {
24072414
executionId: {
24082415
type: 'string',
24092416
description:
2410-
"Required for 'overview'/'full' (and 'pattern'): the execution to read. For 'list', an optional exact-match filter.",
2417+
"Required for 'overview'/'full': the execution to read. For 'list', an optional exact-match filter.",
24112418
},
24122419
folderIds: {
24132420
type: 'string',
@@ -2426,7 +2433,7 @@ export const QueryLogs: ToolCatalogEntry = {
24262433
pattern: {
24272434
type: 'string',
24282435
description:
2429-
"Optional substring/regex to grep within the execution's trace spans (requires executionId). Returns matching spans with snippets instead of the full log.",
2436+
"Optional separate parameter (not a 'view' value): with view 'overview' or 'full', greps the execution's trace spans (requires executionId), returning matching spans with snippets instead of the full log.",
24302437
},
24312438
search: {
24322439
type: 'string',
@@ -2933,7 +2940,7 @@ export const SearchOnline: ToolCatalogEntry = {
29332940
toolTitle: {
29342941
type: 'string',
29352942
description:
2936-
'Optional target-only UI phrase for the search row. The UI verb is supplied for you, so pass text like "pricing changes" or "Slack webhook docs", not a full sentence like "Searching online for pricing changes".',
2943+
"Required short UI label fragment (e.g. 'Slack integrations'), not a full sentence.",
29372944
},
29382945
},
29392946
required: ['query', 'toolTitle'],
@@ -3041,12 +3048,19 @@ export const SetGlobalWorkflowVariables: ToolCatalogEntry = {
30413048
items: {
30423049
type: 'object',
30433050
properties: {
3044-
name: { type: 'string' },
3051+
name: { type: 'string', description: 'Variable name.' },
30453052
operation: { type: 'string', enum: ['add', 'delete', 'edit'] },
3046-
type: { type: 'string', enum: ['plain', 'number', 'boolean', 'array', 'object'] },
3047-
value: { type: 'string' },
3053+
type: {
3054+
type: 'string',
3055+
description: 'Variable type. Required for add/edit; ignored for delete.',
3056+
enum: ['plain', 'number', 'boolean', 'array', 'object'],
3057+
},
3058+
value: {
3059+
type: 'string',
3060+
description: 'Variable value. Required for add/edit; ignored for delete.',
3061+
},
30483062
},
3049-
required: ['operation', 'name', 'type', 'value'],
3063+
required: ['operation', 'name'],
30503064
},
30513065
},
30523066
workflowId: {
@@ -3194,7 +3208,8 @@ export const UserMemory: ToolCatalogEntry = {
31943208
},
31953209
correct_value: {
31963210
type: 'string',
3197-
description: "The correct value to replace the wrong one (for 'correct' operation)",
3211+
description:
3212+
"The correct value to replace the wrong one (for 'correct' operation). Requires `key` (the memory to replace).",
31983213
},
31993214
key: {
32003215
type: 'string',
@@ -3670,10 +3685,6 @@ export const WorkspaceFile: ToolCatalogEntry = {
36703685
},
36713686
},
36723687
},
3673-
newName: {
3674-
type: 'string',
3675-
description: 'New file name for rename. Must be a plain workspace filename like "main.py".',
3676-
},
36773688
},
36783689
required: ['operation', 'target', 'title'],
36793690
},

apps/sim/lib/copilot/generated/tool-schemas-v1.ts

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,13 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
728728
properties: {
729729
ref1: {
730730
type: 'string',
731-
description: 'Base side: a version number (e.g. "3"), "live", or "draft".',
731+
description:
732+
'Base side (string): a version number (e.g. "3"), "live" (active deployment), or "draft" (current editor state).',
732733
},
733734
ref2: {
734735
type: 'string',
735-
description: 'Target side: a version number (e.g. "4"), "live", or "draft".',
736+
description:
737+
'Target side (string): a version number (e.g. "4"), "live" (active deployment), or "draft" (current editor state).',
736738
},
737739
workflowId: {
738740
type: 'string',
@@ -1514,7 +1516,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
15141516
syncIntervalMinutes: {
15151517
type: 'number',
15161518
description:
1517-
'Sync interval in minutes: 60 (hourly), 360 (6h), 1440 (daily), 10080 (weekly), 0 (manual only). Default: 1440',
1519+
'Sync interval in minutes. Accepted values: 60 (hourly), 360 (6h), 1440 (daily), 10080 (weekly), 0 (manual only). Default: 1440',
15181520
default: 1440,
15191521
},
15201522
tagDefinitionId: {
@@ -1539,7 +1541,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
15391541
},
15401542
workspaceId: {
15411543
type: 'string',
1542-
description: "Workspace ID (required for 'create', optional filter for 'list')",
1544+
description:
1545+
"Workspace ID. Required for 'create' when there is no workspace in context (otherwise the current workspace context is used); optional filter for 'list'.",
15431546
},
15441547
},
15451548
},
@@ -1567,7 +1570,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
15671570
],
15681571
},
15691572
},
1570-
required: ['operation', 'args'],
1573+
required: ['operation'],
15711574
},
15721575
resultSchema: {
15731576
type: 'object',
@@ -1639,7 +1642,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
16391642
version: {
16401643
type: 'string',
16411644
description:
1642-
'The deployment version number to load (e.g. "5"), or "live" for the active deployment.',
1645+
'A string: a deployment version number (e.g. "5"), or "live" for the active deployment. (Unlike promote_to_live, which takes a numeric version, "live" is accepted here.)',
16431646
},
16441647
workflowId: {
16451648
type: 'string',
@@ -1897,7 +1900,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
18971900
serverId: {
18981901
type: 'string',
18991902
description:
1900-
'The database ID of the MCP server. Required for edit and delete; omit for add and list.',
1903+
"The MCP server's id — the `id` field inside the VFS file agent/mcp-servers/{name}.json (the {name} filename is the display name, not the id). Required for edit and delete; omit for add and list.",
19011904
},
19021905
},
19031906
required: ['operation'],
@@ -1930,7 +1933,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
19301933
skillId: {
19311934
type: 'string',
19321935
description:
1933-
'The ID of the skill. Must be the exact ID from the VFS or list. Required for edit and delete; omit for add and list.',
1936+
"The skill's id — the `id` field inside the VFS file agent/skills/{name}.json (the {name} filename is the display name, not the id). Required for edit and delete; omit for add and list.",
19341937
},
19351938
},
19361939
required: ['operation'],
@@ -2115,7 +2118,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
21152118
properties: {
21162119
version: {
21172120
type: 'number',
2118-
description: 'The deployment version number to promote to live.',
2121+
description:
2122+
'The numeric deployment version number to promote to live (e.g. 5). "live" is not accepted here — pass the version number (use load_deployment to change the draft).',
21192123
},
21202124
workflowId: {
21212125
type: 'string',
@@ -2169,7 +2173,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
21692173
executionId: {
21702174
type: 'string',
21712175
description:
2172-
"Required for 'overview'/'full' (and 'pattern'): the execution to read. For 'list', an optional exact-match filter.",
2176+
"Required for 'overview'/'full': the execution to read. For 'list', an optional exact-match filter.",
21732177
},
21742178
folderIds: {
21752179
type: 'string',
@@ -2191,7 +2195,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
21912195
pattern: {
21922196
type: 'string',
21932197
description:
2194-
"Optional substring/regex to grep within the execution's trace spans (requires executionId). Returns matching spans with snippets instead of the full log.",
2198+
"Optional separate parameter (not a 'view' value): with view 'overview' or 'full', greps the execution's trace spans (requires executionId), returning matching spans with snippets instead of the full log.",
21952199
},
21962200
search: {
21972201
type: 'string',
@@ -2689,7 +2693,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
26892693
toolTitle: {
26902694
type: 'string',
26912695
description:
2692-
'Optional target-only UI phrase for the search row. The UI verb is supplied for you, so pass text like "pricing changes" or "Slack webhook docs", not a full sentence like "Searching online for pricing changes".',
2696+
"Required short UI label fragment (e.g. 'Slack integrations'), not a full sentence.",
26932697
},
26942698
},
26952699
required: ['query', 'toolTitle'],
@@ -2786,20 +2790,23 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
27862790
properties: {
27872791
name: {
27882792
type: 'string',
2793+
description: 'Variable name.',
27892794
},
27902795
operation: {
27912796
type: 'string',
27922797
enum: ['add', 'delete', 'edit'],
27932798
},
27942799
type: {
27952800
type: 'string',
2801+
description: 'Variable type. Required for add/edit; ignored for delete.',
27962802
enum: ['plain', 'number', 'boolean', 'array', 'object'],
27972803
},
27982804
value: {
27992805
type: 'string',
2806+
description: 'Variable value. Required for add/edit; ignored for delete.',
28002807
},
28012808
},
2802-
required: ['operation', 'name', 'type', 'value'],
2809+
required: ['operation', 'name'],
28032810
},
28042811
},
28052812
workflowId: {
@@ -2939,7 +2946,8 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
29392946
},
29402947
correct_value: {
29412948
type: 'string',
2942-
description: "The correct value to replace the wrong one (for 'correct' operation)",
2949+
description:
2950+
"The correct value to replace the wrong one (for 'correct' operation). Requires `key` (the memory to replace).",
29432951
},
29442952
key: {
29452953
type: 'string',
@@ -3445,11 +3453,6 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
34453453
},
34463454
},
34473455
},
3448-
newName: {
3449-
type: 'string',
3450-
description:
3451-
'New file name for rename. Must be a plain workspace filename like "main.py".',
3452-
},
34533456
},
34543457
required: ['operation', 'target', 'title'],
34553458
},

apps/sim/lib/copilot/vfs/workspace-vfs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ function getStaticComponentFiles(): Map<string, string> {
229229
description: 'Condition expression (for loopType "while" or "doWhile")',
230230
},
231231
},
232-
sourceHandles: ['loop-start-source', 'source'],
232+
sourceHandles: ['loop-start-source', 'loop-end-source'],
233233
notes:
234-
'Use "loop-start-source" to connect to blocks inside the loop. Use "source" for the edge that runs after the loop completes. Blocks inside the loop must have parentId set to the loop block ID.',
234+
'Use "loop-start-source" to connect to blocks INSIDE the loop. Use "loop-end-source" for the edge that runs AFTER the loop completes. Do NOT use "source" for a loop block — it is rejected; the only valid source handles are "loop-start-source", "loop-end-source", and "error". Blocks inside the loop must have parentId set to the loop block ID.',
235235
},
236236
null,
237237
2
@@ -260,9 +260,9 @@ function getStaticComponentFiles(): Map<string, string> {
260260
description: 'Collection to distribute (for parallelType "collection")',
261261
},
262262
},
263-
sourceHandles: ['parallel-start-source', 'source'],
263+
sourceHandles: ['parallel-start-source', 'parallel-end-source'],
264264
notes:
265-
'Use "parallel-start-source" to connect to blocks inside the parallel container. Use "source" for the edge after all branches complete. Blocks inside must have parentId set to the parallel block ID.',
265+
'Use "parallel-start-source" to connect to blocks INSIDE the parallel container. Use "parallel-end-source" for the edge AFTER all branches complete. Do NOT use "source" for a parallel block — it is rejected; the only valid source handles are "parallel-start-source", "parallel-end-source", and "error". Blocks inside must have parentId set to the parallel block ID.',
266266
},
267267
null,
268268
2

0 commit comments

Comments
 (0)