update_workflow
Modify existing workflows in Automatisch by updating names, descriptions, or activation status to adapt automation processes as business needs change.
Instructions
Update an existing workflow
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflowId": "<workflowId>"
},
"name": "update_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | Workflow ID to update | |
| name | No | New workflow name | |
| description | No | New workflow description | |
| active | No | Workflow active status |
Implementation Reference
- src/handlers.ts:65-90 (registration)Registration of the 'update_workflow' tool in the ListToolsRequestHandler, including name, description, and input schema definition.
{ name: "update_workflow", description: "Update an existing workflow", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "Workflow ID to update" }, name: { type: "string", description: "New workflow name" }, description: { type: "string", description: "New workflow description" }, active: { type: "boolean", description: "Workflow active status" } }, required: ["workflowId"] } }, - src/handlers.ts:310-318 (handler)The handler logic in CallToolRequestHandler for 'update_workflow', which invokes the API helper to update the workflow and returns the JSON result.
case "update_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.updateWorkflow(args?.workflowId, args), null, 2) } ] }; - src/api.ts:18-20 (helper)API helper function stub for updateWorkflow, called by the tool handler. Actual logic is placeholder.
updateWorkflow: async function(workflowId: any, data: any) { // ... copy updateWorkflow logic from index.ts ... }, - src/server.ts:35-36 (helper)Server instance exposes the api helpers (including updateWorkflow) to the handlers via 'main.api'.
public api = apiHelpers(this);