Skip to content

Commit 4f622d1

Browse files
committed
Regenerated contracts
1 parent 797f91a commit 4f622d1

2 files changed

Lines changed: 29 additions & 165 deletions

File tree

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

Lines changed: 17 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ export interface ToolCatalogEntry {
1111
| 'auth'
1212
| 'check_deployment_status'
1313
| 'complete_job'
14-
| 'context_write'
1514
| 'crawl_website'
1615
| 'create_file'
1716
| 'create_file_folder'
1817
| 'create_folder'
19-
| 'create_job'
2018
| 'create_workflow'
2119
| 'create_workspace_mcp_server'
2220
| 'debug'
@@ -108,12 +106,10 @@ export interface ToolCatalogEntry {
108106
| 'auth'
109107
| 'check_deployment_status'
110108
| 'complete_job'
111-
| 'context_write'
112109
| 'crawl_website'
113110
| 'create_file'
114111
| 'create_file_folder'
115112
| 'create_folder'
116-
| 'create_job'
117113
| 'create_workflow'
118114
| 'create_workspace_mcp_server'
119115
| 'debug'
@@ -281,24 +277,6 @@ export const CompleteJob: ToolCatalogEntry = {
281277
},
282278
}
283279

284-
export const ContextWrite: ToolCatalogEntry = {
285-
id: 'context_write',
286-
name: 'context_write',
287-
route: 'go',
288-
mode: 'sync',
289-
parameters: {
290-
type: 'object',
291-
properties: {
292-
content: {
293-
type: 'string',
294-
description: 'Full content to write to the file (replaces existing content)',
295-
},
296-
file_path: { type: 'string', description: "Path of the file to write (e.g. 'SESSION.md')" },
297-
},
298-
required: ['file_path', 'content'],
299-
},
300-
}
301-
302280
export const CrawlWebsite: ToolCatalogEntry = {
303281
id: 'crawl_website',
304282
name: 'crawl_website',
@@ -432,60 +410,6 @@ export const CreateFolder: ToolCatalogEntry = {
432410
requiredPermission: 'write',
433411
}
434412

435-
export const CreateJob: ToolCatalogEntry = {
436-
id: 'create_job',
437-
name: 'create_job',
438-
route: 'sim',
439-
mode: 'async',
440-
parameters: {
441-
type: 'object',
442-
properties: {
443-
cron: {
444-
type: 'string',
445-
description:
446-
"Cron expression for recurring jobs (e.g., '*/5 * * * *' for every 5 minutes, '0 9 * * *' for daily at 9 AM). Omit for one-time jobs.",
447-
},
448-
lifecycle: {
449-
type: 'string',
450-
description:
451-
"'persistent' (default) or 'until_complete'. Until_complete jobs stop when complete_job is called after the success condition is met.",
452-
enum: ['persistent', 'until_complete'],
453-
},
454-
maxRuns: {
455-
type: 'integer',
456-
description:
457-
'Maximum number of executions before the job auto-completes. Safety limit to prevent runaway polling.',
458-
},
459-
prompt: {
460-
type: 'string',
461-
description:
462-
'The prompt to execute when the job fires. This is sent to the Mothership as a user message.',
463-
},
464-
successCondition: {
465-
type: 'string',
466-
description:
467-
"What must happen for the job to be considered complete. Used with until_complete lifecycle (e.g., 'John has replied to the partnership email').",
468-
},
469-
time: {
470-
type: 'string',
471-
description:
472-
"ISO 8601 datetime for one-time execution or as the start time for a cron schedule (e.g., '2026-03-06T09:00:00'). Include timezone offset or use the timezone parameter.",
473-
},
474-
timezone: {
475-
type: 'string',
476-
description:
477-
"IANA timezone for the schedule (e.g., 'America/New_York', 'Europe/London'). Defaults to UTC.",
478-
},
479-
title: {
480-
type: 'string',
481-
description:
482-
"A short, descriptive title for the job (e.g., 'Email Poller', 'Daily Report'). Used as the display name.",
483-
},
484-
},
485-
required: ['title', 'prompt'],
486-
},
487-
}
488-
489413
export const CreateWorkflow: ToolCatalogEntry = {
490414
id: 'create_workflow',
491415
name: 'create_workflow',
@@ -1119,10 +1043,10 @@ export const EditWorkflow: ToolCatalogEntry = {
11191043
params: {
11201044
type: 'object',
11211045
description:
1122-
'Parameters for the operation. \nFor edit: {"inputs": {"temperature": 0.5}} NOT {"subBlocks": {"temperature": {"value": 0.5}}}\nFor add: {"type": "agent", "name": "My Agent", "inputs": {"model": "claude-sonnet-4-6"}}\nFor delete: {} (empty object)',
1046+
'Parameters for the operation (optional).\nFor edit: {"inputs": {"temperature": 0.5}} NOT {"subBlocks": {"temperature": {"value": 0.5}}}\nFor add: {"type": "agent", "name": "My Agent", "inputs": {"model": "<model-id from agent.json>"}}\nFor delete: omit params entirely (none needed)',
11231047
},
11241048
},
1125-
required: ['operation_type', 'block_id', 'params'],
1049+
required: ['operation_type', 'block_id'],
11261050
},
11271051
},
11281052
workflowId: {
@@ -1162,7 +1086,7 @@ export const FunctionExecute: ToolCatalogEntry = {
11621086
inputs: {
11631087
type: 'object',
11641088
description:
1165-
'Workspace resources to mount into the sandbox. Copy canonical VFS paths exactly from glob/read/grep output.',
1089+
'Workspace resources to mount into the sandbox. Copy paths verbatim from glob/read/grep output — they are percent-encoded per segment (spaces are %20, an in-name slash is %2F; parentheses and dots stay literal). Both the encoded path and the plain name resolve, so copy the returned path exactly rather than retyping or decoding it.',
11661090
properties: {
11671091
directories: {
11681092
type: 'array',
@@ -1324,7 +1248,7 @@ export const GenerateImage: ToolCatalogEntry = {
13241248
inputs: {
13251249
type: 'object',
13261250
description:
1327-
'Workspace resources to mount into the sandbox. Copy canonical VFS paths exactly from glob/read/grep output.',
1251+
'Workspace resources to mount into the sandbox. Copy paths verbatim from glob/read/grep output — they are percent-encoded per segment (spaces are %20, an in-name slash is %2F; parentheses and dots stay literal). Both the encoded path and the plain name resolve, so copy the returned path exactly rather than retyping or decoding it.',
13281252
properties: {
13291253
directories: {
13301254
type: 'array',
@@ -2046,7 +1970,7 @@ export const ManageCustomTool: ToolCatalogEntry = {
20461970
toolId: {
20471971
type: 'string',
20481972
description:
2049-
"The ID of the custom tool (required for edit). Must be the exact toolId from the get_workflow_data custom tool response - do not guess or construct it. DO NOT PROVIDE THE TOOL ID IF THE OPERATION IS 'ADD'.",
1973+
'The ID of the custom tool. Must be the exact toolId from the get_workflow_data custom tool response do not guess or construct it. Required for edit and delete; omit for add and list.',
20501974
},
20511975
toolIds: {
20521976
type: 'array',
@@ -2161,7 +2085,7 @@ export const ManageMcpTool: ToolCatalogEntry = {
21612085
serverId: {
21622086
type: 'string',
21632087
description:
2164-
"Required for edit and delete. The database ID of the MCP server. DO NOT PROVIDE if operation is 'add' or 'list'.",
2088+
'The database ID of the MCP server. Required for edit and delete; omit for add and list.',
21652089
},
21662090
},
21672091
required: ['operation'],
@@ -2199,7 +2123,7 @@ export const ManageSkill: ToolCatalogEntry = {
21992123
skillId: {
22002124
type: 'string',
22012125
description:
2202-
"The ID of the skill (required for edit/delete). Must be the exact ID from the VFS or list. DO NOT PROVIDE if operation is 'add' or 'list'.",
2126+
'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.',
22032127
},
22042128
},
22052129
required: ['operation'],
@@ -2549,7 +2473,7 @@ export const Read: ToolCatalogEntry = {
25492473
path: {
25502474
type: 'string',
25512475
description:
2552-
"Path to the file to read (e.g. 'workflows/My Workflow/state.json' or 'workflows/Projects/Q1/My Workflow/state.json').",
2476+
"Path to the file to read (e.g. 'workflows/My%20Workflow/state.json' or 'workflows/Projects/Q1/My%20Workflow/state.json').",
25532477
},
25542478
},
25552479
required: ['path'],
@@ -3183,7 +3107,7 @@ export const TouchPlan: ToolCatalogEntry = {
31833107
workflowPath: {
31843108
type: 'string',
31853109
description:
3186-
'Required for scope "workflow". Canonical workflow VFS path, e.g. "workflows/My%20Workflow" or "workflows/Folder/My%20Workflow". Copy from glob/read output; do not use workflow IDs.',
3110+
'Required for scope "workflow". Canonical workflow VFS path, e.g. "workflows/My%20Workflow" or "workflows/Folder/My%20Workflow". Copy paths verbatim from glob/read/grep output — they are percent-encoded per segment (spaces are %20, an in-name slash is %2F; parentheses and dots stay literal). Both the encoded path and the plain name resolve, so copy the returned path exactly rather than retyping or decoding it. Do not use workflow IDs.',
31873111
},
31883112
},
31893113
required: ['name'],
@@ -3427,7 +3351,11 @@ export const UserTable: ToolCatalogEntry = {
34273351
description:
34283352
"Table name (required for 'create'). Also the optional display name for add_enrichment — defaults to the enrichment's registry name when omitted.",
34293353
},
3430-
newName: { type: 'string', description: 'New column name (required for rename_column)' },
3354+
newName: {
3355+
type: 'string',
3356+
description:
3357+
'New name. Required for rename_column (new column name) and for rename (new table name).',
3358+
},
34313359
newType: {
34323360
type: 'string',
34333361
description:
@@ -3573,6 +3501,7 @@ export const UserTable: ToolCatalogEntry = {
35733501
'get',
35743502
'get_schema',
35753503
'delete',
3504+
'rename',
35763505
'insert_row',
35773506
'batch_insert_rows',
35783507
'get_row',
@@ -3917,6 +3846,7 @@ export const UserTableOperation = {
39173846
get: 'get',
39183847
getSchema: 'get_schema',
39193848
delete: 'delete',
3849+
rename: 'rename',
39203850
insertRow: 'insert_row',
39213851
batchInsertRows: 'batch_insert_rows',
39223852
getRow: 'get_row',
@@ -3952,6 +3882,7 @@ export const UserTableOperationValues = [
39523882
UserTableOperation.get,
39533883
UserTableOperation.getSchema,
39543884
UserTableOperation.delete,
3885+
UserTableOperation.rename,
39553886
UserTableOperation.insertRow,
39563887
UserTableOperation.batchInsertRows,
39573888
UserTableOperation.getRow,
@@ -3998,12 +3929,10 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
39983929
[Auth.id]: Auth,
39993930
[CheckDeploymentStatus.id]: CheckDeploymentStatus,
40003931
[CompleteJob.id]: CompleteJob,
4001-
[ContextWrite.id]: ContextWrite,
40023932
[CrawlWebsite.id]: CrawlWebsite,
40033933
[CreateFile.id]: CreateFile,
40043934
[CreateFileFolder.id]: CreateFileFolder,
40053935
[CreateFolder.id]: CreateFolder,
4006-
[CreateJob.id]: CreateJob,
40073936
[CreateWorkflow.id]: CreateWorkflow,
40083937
[CreateWorkspaceMcpServer.id]: CreateWorkspaceMcpServer,
40093938
[Debug.id]: Debug,

0 commit comments

Comments
 (0)