validate_workflow
Validate workflow pipeline definitions to detect errors like missing connections, required fields, unreachable steps, and invalid configurations before execution.
Instructions
Validate a workflow's pipeline definition. Returns structured errors per step. Use this after creating or updating a workflow to check for:
Missing step connections (broken next.stepId references)
Missing required fields (app action without inputs, AI step without prompt)
Unreachable steps (not connected to the trigger chain)
Invalid app/action IDs (not in the app registry)
Missing trigger or milestone steps
List field misconfigurations (missing itemFields, defaultValue format mismatches)
Config page field validation (missing name/type on input page fields)
Each error/warning may include a "suggestedFix" with a concrete remediation.
You can also pass a pipeline object to validate a draft before saving. Returns: { valid: boolean, errors: [...], warnings: [...], stepCount: number }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID to validate | |
| pipeline | No | Optional draft pipeline to validate before saving (merged with stored pipeline) |