test_workflow
Test workflows using sample data to verify functionality before deployment in the Automatisch automation platform.
Instructions
Test a workflow with sample data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | Workflow ID to test | |
| testData | No | Sample data for testing |
Implementation Reference
- src/api.ts:36-38 (handler)The core handler function for executing the test_workflow tool. It takes a workflowId and optional testData, and is called by the MCP tool dispatcher to perform the workflow test.testWorkflow: async function(workflowId: any, testData: any = {}) { // ... copy testWorkflow logic from index.ts ... },
- src/handlers.ts:178-191 (schema)Input schema definition for the test_workflow tool, specifying required workflowId and optional testData.inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "Workflow ID to test" }, testData: { type: "object", description: "Sample data for testing" } }, required: ["workflowId"] }
- src/handlers.ts:175-192 (registration)Tool registration entry in the ListTools response, including name, description, and schema for test_workflow.{ name: "test_workflow", description: "Test a workflow with sample data", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "Workflow ID to test" }, testData: { type: "object", description: "Sample data for testing" } }, required: ["workflowId"] } }
- src/handlers.ts:364-372 (handler)MCP CallToolRequestHandler switch case that dispatches test_workflow calls to the api.testWorkflow implementation.case "test_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.testWorkflow(args?.workflowId, args?.testData), null, 2) } ] };
- src/server.ts:35-35 (helper)Initializes the api object with apiHelpers, providing the testWorkflow method to handlers.public api = apiHelpers(this);