undo
Revert a specific vault change by ID or the latest change; refuses if the file changed afterward, preventing loss of newer edits.
Instructions
Undo one change (its id from recent_changes), or the latest one. Refuses when the file changed since, so newer work is never lost.
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 |