undo
Revert one change in an open Cryptomator vault: choose a change ID or the latest change. Restores replaced files, moves files back, retrieves trashed items, and deletes empty new folders.
Instructions
Take back one change made in an open vault: the one with change_id (from recent_changes), or the latest one not yet undone. A new file or copy goes to the trash, a replaced or appended file gets its old contents back, a move is moved back, trashed items come back out, and an empty new folder is removed. It refuses when the file changed since (use versions and restore_version then), and an undo or empty_trash can't be undone. Returns what was done; the undo itself is logged too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | The vault's name, as listed by the vaults tool, for example 'Taxes'. | |
| purpose | Yes | A few words on why, shown to the user or kept in the vault's change log. | |
| change_id | No | The id of the change to undo, from recent_changes. Leave empty to undo the latest change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |