reset_transaction_buffer
Wipes all editor undo/redo history irreversibly, drops any open transaction, and leaves edits intact; use to reclaim memory after huge batches or recover from a corrupt buffer.
Instructions
IRREVERSIBLE: wipes the editor's ENTIRE undo AND redo history (the human's entries too, not just yours) and drops any open transaction. It does not revert anything -- edits already made stay made, they just stop being undoable. Use only to reclaim memory after a huge batch, or when a corrupt buffer is causing trouble; to undo work use undo/undo_multiple. undo_count_before vs after is the evidence.
Returns: { success: bool (hardcoded), undo_count_before: int, undo_count_after: int (0) }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Human-readable reason, logged by the engine so the wipe is traceable. Defaults to 'MCP reset_transaction_buffer'. |