rollback
Abort a workflow and reverse completed steps in order. Use to undo executed steps when a workflow fails or needs cancellation. Skips irreversible actions and sets state to failed.
Instructions
[WRITE] Abort a workflow and rollback completed steps in reverse order.
Use this to undo steps that already ran; use cancel_workflow instead to stop a workflow that has not started yet or whose approval was rejected. Works in any state except 'completed'. Irreversible steps are skipped. The workflow state is set to 'failed' after rollback.
Args: workflow_id: The workflow ID to rollback.
Returns: Rollback results for each step. Check get_workflow_status afterwards to see which steps were actually reversed and which were skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes |