Publish workflow template version
publish_workflow_template_versionPublish an immutable new version of a workflow template by supplying the exact current version; stale versions are rejected with a conflict.
Instructions
Publish an immutable new template version. Requires the OWNER role and the exact expected_current_version; a stale value returns a conflict. Definitions cannot weaken handler invariants, hide indispensable controls, change core types, or invent units.
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": {
"template_id": "<template_id>",
"expected_current_version": "<expected_current_version>",
"definition": "<definition>"
},
"name": "publish_workflow_template_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| farm_id | No | Farm UUID; defaults to the active farm. | |
| definition | Yes | ||
| template_id | Yes | ||
| expected_current_version | Yes |