cancel_operation
Cancel the active operation and roll back all changes made since it started. Restores from checkpoint when available, otherwise steps the undo stack to discard edits.
Instructions
Abandon the open operation and roll back.
With a checkpoint this reloads it, which DISCARDS everything done since begin_operation -- including any of the user's own edits in that window. Without one it falls back to stepping the undo stack, which is best effort; the response says which path was taken.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo_steps | No | Undo steps to try when there is no checkpoint | |
| restore_checkpoint | No | Restore from the operation's checkpoint. Defaults to true when one exists -- the only reliable rollback. |