Validate workflow chart
validate_workflow_chartValidates a workflow chart without saving or running it -- the same structural validation and lint as POST /api/v2/workflows/validate, minus the checks that need a specific app. Returns {valid, errors, warnings, workflows_to_create}. errors block saving/publishing and must be fixed; warnings are likely mistakes worth reviewing. Each issue has a path into the chart document (e.g. states.create.on.success.0.target) and a message. A workflow state calling a child workflow not listed in known_workflows is reported as a warning, and its key is listed in workflows_to_create: that workflow must exist and be published in the app before this chart can be published.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chart": "<chart>"
},
"name": "validate_workflow_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart | Yes | The chart document to check (the JSON object with version, key, states, ...). A JSON-encoded string of it is also accepted. | |
| known_workflows | No | Keys of workflows that already exist in the target app and that this chart may call from `workflow` states. Calls to other keys are reported as warnings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| warnings | Yes | ||
| workflows_to_create | Yes | Child workflow keys this chart calls that were not in known_workflows. |