apply_workflow_draft
Publishes a workflow preview from the verified active builder task without saving a workflow, using the expected draft revision to reject stale changes.
Instructions
Publish a preview from the verified active builder task; never write a saved workflow.
Positions are top-left logical points, with finite x/y >= 0, on a 10-point dot grid.
Agent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72
(reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges; no overlaps.
Use routing_mode="explicit". Ordinary outgoing paths are exclusive alternatives.
Parallel execution requires paired parallel_start/parallel_end structural nodes with
a shared parallel_group_id; every branch must reach its matching end. Parallel start
defaults to branch_selection: "all". With branch_selection: "orchestrator", the
orchestrator selects applicable issued branch continuations, assigns each selected entry
through branch_assignments, and records a non-empty selection_reason explaining
selections and exclusions before dispatch. Optional selection_guidance advises that
choice. Selected branches may contain multiple steps and properly nested groups;
convergence uses the frozen selected membership, including singleton selections.
Preserve existing node positions exactly unless the user explicitly asks to move or rearrange them.
The canvas expands automatically; do not constrain nodes to a fixed viewport.
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": {
"definition": "<definition>",
"expected_draft_revision": "<expected_draft_revision>"
},
"name": "apply_workflow_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | ||
| expected_draft_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||