update_workflow
Modify existing workflows in Automatisch by updating their name, description, or activation status to maintain automation processes.
Instructions
Update an existing workflow
Input Schema
TableJSON 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:310-318 (handler)Executes the update_workflow tool by calling the API helper main.api.updateWorkflow with the provided workflowId and arguments.case "update_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.updateWorkflow(args?.workflowId, args), null, 2) } ] };
- src/handlers.ts:65-90 (registration)Registers the 'update_workflow' tool in the list of available tools returned by listTools, including its name, description, and input schema.{ 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:68-89 (schema)Defines the input schema for the update_workflow tool, specifying parameters like workflowId (required), name, description, and active status.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/api.ts:18-19 (helper)Stub definition of the updateWorkflow helper function used by the tool handler, which is intended to contain the actual API logic but is currently unimplemented.updateWorkflow: async function(workflowId: any, data: any) { // ... copy updateWorkflow logic from index.ts ...