apply_plan
Execute an approved change plan, with automatic rollback if a step fails. Run steps in dry-run mode first to preview modifications before touching files or cloud resources.
Instructions
Execute an approved plan with automatic rollback on step failure.
Use this tool when the user asks to:
Execute or apply an approved plan created by plan_change.
Run plan steps in dry-run mode before modifying actual files.
Args: plan_id: ID of the plan previously created by plan_change. dry_run: If True, simulate execution without modifying files or cloud resources. confirm_each_step: Reserved hook for interactive step confirmations.
Returns: ApplyResult with execution status, executed steps, and rollback details if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| plan_id | Yes | ||
| confirm_each_step | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | success | |
| failed_step | No | ||
| executed_steps | No | ||
| rollback_handle | No | ||
| artifacts_changed | No | ||
| rollback_steps_executed | No |