confirm_draft
Approve a draft workflow to set it to PENDING for execution, and optionally save it as a reusable YAML template. Confirms after review, enabling subsequent run_workflow() execution.
Instructions
[WRITE] Confirm a draft workflow — changes state from DRAFT to PENDING.
Use this once the user has approved the draft's steps; call update_draft instead if anything still needs changing. After confirmation, the workflow can be executed via run_workflow(). Optionally saves as a YAML template for future reuse. Refused — the draft stays a draft and nothing is saved — while any destructive or unclassifiable step, or any step passing confirm=True, lacks a require_approval gate before it.
Returns: Confirmed workflow summary. Call run_workflow() to execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | The draft workflow ID to confirm. | |
| save_as_template | No | If True, save to ~/.vmware/workflows/ for reuse. Refused when the draft's name is a built-in template's name. |