cancel_transaction
Abort an open transaction to roll back edits made within it, without recording an undo entry. Use when a multi-step edit goes wrong halfway to discard changes cleanly.
Instructions
Abort the transaction opened by begin_transaction: the edits made inside it are rolled back and NO entry is written to the undo stack (undo_count is unchanged). The escape hatch when a multi-step edit goes wrong halfway -- cleaner than committing with end_transaction and then calling undo, which leaves history behind.
Returns: { success: bool, transaction_index: int (the one that was cancelled), undo_count: int (unchanged -- nothing was recorded) }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||