create_workflow
Create new workflows in Automatisch to automate business processes and integrate applications using this MCP server tool.
Instructions
Create a new workflow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name | |
| description | No | Workflow description | |
| active | No | Whether workflow should be active |
Implementation Reference
- src/handlers.ts:42-63 (registration)Tool registration entry in the ListTools handler, defining the name, description, and input schema for 'create_workflow'.{ name: "create_workflow", description: "Create a new workflow", inputSchema: { type: "object", properties: { name: { type: "string", description: "Workflow name" }, description: { type: "string", description: "Workflow description" }, active: { type: "boolean", description: "Whether workflow should be active", default: false } }, required: ["name"] }
- src/handlers.ts:45-63 (schema)Input schema defining the parameters for the create_workflow tool (name required, optional description and active flag).inputSchema: { type: "object", properties: { name: { type: "string", description: "Workflow name" }, description: { type: "string", description: "Workflow description" }, active: { type: "boolean", description: "Whether workflow should be active", default: false } }, required: ["name"] }
- src/handlers.ts:301-309 (handler)MCP tool handler logic that delegates execution to main.api.createWorkflow and returns the result as a text content block.case "create_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.createWorkflow(args), null, 2) } ] };
- src/api.ts:15-17 (helper)API helper method stub for createWorkflow, intended to contain the core logic for creating a workflow (delegated to by the tool handler).createWorkflow: async function(data: any) { // ... copy createWorkflow logic from index.ts ... },
- src/server.ts:35-36 (helper)Initializes the 'api' object on the main server instance using apiHelpers, providing access to createWorkflow for handlers.public api = apiHelpers(this);