revert_edit
Restore a file to a previous state after unwanted edits using automatic backups. Reverts to the most recent backup or a specified backup ID, saving current state as a new backup.
Instructions
Restore a file to a previous state from automatic backups.
Use when edit_content made unwanted changes. Backups are created
automatically before each edit. Current state is saved as new backup
before reverting (so revert is reversible). Without backup_id, reverts to
most recent backup. Returns list of available backups with timestamps.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| absolute_file_path | Yes | Absolute path to the file to revert | |
| backup_id | No | Backup ID from response. Omit to use most recent. |