create_workflow
Define and create a custom workflow from your step list, with optional approval gates, when no built-in template fits your process.
Instructions
[WRITE] Create a custom workflow dynamically from a step list.
Use this when you already know the steps and no built-in template matches; prefer plan_workflow when one does, and design_workflow when the user gave a goal rather than steps. Call get_skill_catalog first for the skill and tool names a step may target.
Each step dict must have: action, skill, tool, params. Optional: rollback_tool, rollback_params. action="require_approval" inserts a human approval gate — run_workflow refuses ungated destructive steps.
Args: name: Workflow name (used as workflow_type). description: Human-readable description. steps: List of step dicts, each with action/skill/tool/params. save_as_template: If True, save as YAML to ~/.vmware/workflows/ for reuse.
Returns: dict with workflow_id and plan summary. Next call review_workflow to check the plan, then run_workflow to execute; rollback undoes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| steps | Yes | ||
| description | Yes | ||
| save_as_template | No |