test_workflow
Test workflows with sample data to verify functionality and identify issues before deployment.
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/handlers.ts:364-372 (handler)Executes the 'test_workflow' tool by calling main.api.testWorkflow with workflowId and testData arguments, returning the JSON stringified result as text content.case "test_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.testWorkflow(args?.workflowId, args?.testData), null, 2) } ] };
- src/handlers.ts:176-192 (schema)Defines the input schema and metadata for the 'test_workflow' tool, including required workflowId and optional testData.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:176-192 (registration)Registers the 'test_workflow' tool in the ListTools response.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/api.ts:36-38 (helper)API helper function for testWorkflow, delegated to by the tool handler (actual implementation pending).testWorkflow: async function(workflowId: any, testData: any = {}) { // ... copy testWorkflow logic from index.ts ... },