update_draft
Update a draft workflow's name, description, or steps to refine it before confirmation. Use this to fill in or modify steps based on feedback while the workflow is still in DRAFT status.
Instructions
[WRITE] Update a DRAFT workflow's name, description, or steps.
Call this after design_workflow() to fill in the actual steps, or to modify steps based on user feedback. Use it only while the workflow is still DRAFT — after confirm_draft the steps are frozen and you must create_workflow a new one instead.
Each step dict: {action, skill, tool, params, rollback_tool?, rollback_params?} Use action="require_approval" for approval gates. A draft may be saved without them while it is being designed; the result lists every step that still needs one, and confirm_draft refuses until none are left.
Returns: Updated workflow summary for user review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Workflow name (optional, updates workflow_type). | |
| steps | No | Complete list of steps (replaces all existing steps). | |
| description | No | Human-readable description. | |
| workflow_id | Yes | The draft workflow ID. |