Validate workflow
validate_workflowCompile a workflow without deploying it and report every error with its node, so you can catch issues after each edit and before deployment.
Instructions
Compile a workflow without deploying it and report every error, each with the node it concerns. Use it after every edit and before deploy_workflow. Checks the saved graph by workflowId, or an unsaved graph passed as nodes and edges (given with a workflowId, they replace the saved ones for this check only). Set includeCode to also get the generated Worker script and its metadata (target, bindings, size) to show the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | Edges to check instead of the saved ones. Pass with nodes. | |
| nodes | No | Nodes to check instead of the saved ones. Pass with edges. | |
| workflowId | No | The workflow's id, from list_workflows or create_workflow. | |
| includeCode | No | Also return the compiled script and metadata when valid. Default false, to save tokens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| script | No | ||
| metadata | No |