Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 66 additions & 71 deletions apps/sim/lib/copilot/generated/tool-catalog-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface ToolCatalogEntry {
| 'download_to_workspace_file'
| 'edit_content'
| 'edit_workflow'
| 'enrichment_run'
| 'ffmpeg'
| 'file'
| 'function_execute'
Expand Down Expand Up @@ -97,7 +98,6 @@ export interface ToolCatalogEntry {
| 'set_global_workflow_variables'
| 'superagent'
| 'table'
| 'touch_plan'
| 'update_deployment_version'
| 'update_job_history'
| 'update_workspace_mcp_server'
Expand Down Expand Up @@ -131,6 +131,7 @@ export interface ToolCatalogEntry {
| 'download_to_workspace_file'
| 'edit_content'
| 'edit_workflow'
| 'enrichment_run'
| 'ffmpeg'
| 'file'
| 'function_execute'
Expand Down Expand Up @@ -198,7 +199,6 @@ export interface ToolCatalogEntry {
| 'set_global_workflow_variables'
| 'superagent'
| 'table'
| 'touch_plan'
| 'update_deployment_version'
| 'update_job_history'
| 'update_workspace_mcp_server'
Expand Down Expand Up @@ -1073,6 +1073,54 @@ export const EditWorkflow: ToolCatalogEntry = {
requiredPermission: 'write',
}

export const EnrichmentRun: ToolCatalogEntry = {
id: 'enrichment_run',
name: 'enrichment_run',
route: 'sim',
mode: 'async',
parameters: {
type: 'object',
properties: {
enrichmentId: {
type: 'string',
description:
"Which enrichment to run. Discover the full set and each one's inputs/outputs via user_table.list_enrichments.",
enum: [
'work-email',
'phone-number',
'company-domain',
'company-info',
'email-verification',
],
},
inputs: {
type: 'object',
description:
'Map of the enrichment\'s input id → value, e.g. { "fullName": "Jane Doe", "companyDomain": "acme.com" }. Provide a value for every required input.',
},
},
required: ['enrichmentId', 'inputs'],
},
resultSchema: {
type: 'object',
properties: {
matched: {
type: 'boolean',
description: 'True when a provider returned a non-empty result.',
},
provider: {
type: 'string',
description: 'Label of the provider that produced the result, or null on no match.',
},
result: {
type: 'object',
description: 'Mapped output values from the winning provider (empty object on no match).',
},
},
required: ['matched', 'result'],
},
}

export const Ffmpeg: ToolCatalogEntry = {
id: 'ffmpeg',
name: 'ffmpeg',
Expand Down Expand Up @@ -1106,7 +1154,7 @@ export const Ffmpeg: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand All @@ -1126,7 +1174,7 @@ export const Ffmpeg: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1207,8 +1255,7 @@ export const Ffmpeg: ToolCatalogEntry = {
},
path: {
type: 'string',
description:
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1287,7 +1334,7 @@ export const FunctionExecute: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand All @@ -1307,7 +1354,7 @@ export const FunctionExecute: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1372,8 +1419,7 @@ export const FunctionExecute: ToolCatalogEntry = {
},
path: {
type: 'string',
description:
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1449,7 +1495,7 @@ export const GenerateAudio: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand All @@ -1469,7 +1515,7 @@ export const GenerateAudio: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1539,8 +1585,7 @@ export const GenerateAudio: ToolCatalogEntry = {
},
path: {
type: 'string',
description:
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1599,7 +1644,7 @@ export const GenerateImage: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand All @@ -1619,7 +1664,7 @@ export const GenerateImage: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1674,8 +1719,7 @@ export const GenerateImage: ToolCatalogEntry = {
},
path: {
type: 'string',
description:
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1737,7 +1781,7 @@ export const GenerateVideo: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS folder path, e.g. "files/Reports" or "workflows/My%20Workflow/.plans". By default this mounts at "/home/user/{path}". Workflow alias directories mount under "/home/user/workflows/...".',
'Canonical VFS folder path, e.g. "files/Reports". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand All @@ -1757,7 +1801,7 @@ export const GenerateVideo: ToolCatalogEntry = {
path: {
type: 'string',
description:
'Canonical VFS file path, e.g. "files/Reports/sales.csv" or "workflows/My%20Workflow/changelog.md". By default this mounts at "/home/user/{path}". Workflow alias paths mount under "/home/user/workflows/...".',
'Canonical VFS file path, e.g. "files/Reports/sales.csv". By default this mounts at "/home/user/{path}".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -1833,8 +1877,7 @@ export const GenerateVideo: ToolCatalogEntry = {
},
path: {
type: 'string',
description:
'Canonical destination VFS path, e.g. "files/Reports/chart.png", "workflows/My%20Workflow/changelog.md", or "workflows/My%20Workflow/.plans/plan.md".',
description: 'Canonical destination VFS path, e.g. "files/Reports/chart.png".',
},
sandboxPath: {
type: 'string',
Expand Down Expand Up @@ -3694,54 +3737,6 @@ export const Table: ToolCatalogEntry = {
internal: true,
}

export const TouchPlan: ToolCatalogEntry = {
id: 'touch_plan',
name: 'touch_plan',
route: 'sim',
mode: 'async',
parameters: {
type: 'object',
properties: {
name: {
type: 'string',
description:
'Plan file name or relative path under .plans, e.g. "implementation.md" or "phase-1/implementation.md". If no extension is supplied, ".md" is appended.',
},
scope: {
type: 'string',
description:
'Plan scope. Use "workspace" for root .plans/** main-agent plans. Use "workflow" for workflows/{workflow}/.plans/** subplans. If omitted with workflowPath, workflow scope is assumed; otherwise workspace scope is assumed.',
enum: ['workspace', 'workflow'],
},
title: {
type: 'string',
description: 'Optional short user-visible label for the plan creation.',
},
workflowPath: {
type: 'string',
description:
'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.',
},
},
required: ['name'],
},
resultSchema: {
type: 'object',
properties: {
data: {
type: 'object',
description:
'Contains id, name, scope, vfsPath, backingVfsPath, and workflowId for workflow plans. Use vfsPath for follow-up workspace_file calls.',
},
message: { type: 'string', description: 'Human-readable outcome.' },
success: { type: 'boolean', description: 'Whether the plan file was created.' },
},
required: ['success', 'message'],
},
requiredPermission: 'write',
capabilities: ['file_output'],
}

export const UpdateDeploymentVersion: ToolCatalogEntry = {
id: 'update_deployment_version',
name: 'update_deployment_version',
Expand Down Expand Up @@ -4627,6 +4622,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
[DownloadToWorkspaceFile.id]: DownloadToWorkspaceFile,
[EditContent.id]: EditContent,
[EditWorkflow.id]: EditWorkflow,
[EnrichmentRun.id]: EnrichmentRun,
[Ffmpeg.id]: Ffmpeg,
[File.id]: File,
[FunctionExecute.id]: FunctionExecute,
Expand Down Expand Up @@ -4694,7 +4690,6 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
[SetGlobalWorkflowVariables.id]: SetGlobalWorkflowVariables,
[Superagent.id]: Superagent,
[Table.id]: Table,
[TouchPlan.id]: TouchPlan,
[UpdateDeploymentVersion.id]: UpdateDeploymentVersion,
[UpdateJobHistory.id]: UpdateJobHistory,
[UpdateWorkspaceMcpServer.id]: UpdateWorkspaceMcpServer,
Expand Down
Loading
Loading