Create workflow version
create_workflow_versionWorkflow versioning — add a new version to an EXISTING workflow (by workflow_id) to evolve a workflow you already created. Author the new version's definition against the schema from get_workflow_definition_schema. Like create_workflow, the definition is statically validated BEFORE it is written: error-severity findings mint nothing (valid=false, created=false), and a successful write returns any advisory (warning/info) findings. Pass publish=true to publish this workflow version immediately, or later with publish_workflow. (For a brand-new workflow, use create_workflow.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publish | No | If true, immediately publish the version this call creates (the common create-then-publish in one step). Defaults to false; omit to leave the version as an unpublished draft. | |
| definition | Yes | The workflow definition, as a JSON object. Fetch the exact JSON Schema it must satisfy with get_workflow_definition_schema and author against it (or copy an existing one with the get_*_version tool). The owning service validates it on submit. | |
| workflow_id | Yes | The workflow id to add a version to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| valid | Yes | ||
| created | Yes | ||
| version | No | ||
| findings | No | ||
| published | Yes | ||
| workflow_id | No |