create_workflow_draft
Create an editable draft from a committed workflow's latest version to enable structural updates. Prevents duplicate drafts by refusing to create a second one.
Instructions
Create an editable draft for a committed workflow family.
Structural update_workflow calls require a draft. This tool reads the latest committed version (including stored webhook secrets), copies its editable fields, and POSTs that content to /api/workflows/{workflow_id}/versions/. It refuses to create a second draft.
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": {
"workflow_id": "<workflow_id>"
},
"name": "create_workflow_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | Family workflow_id (not a version-row id). |