restore_version
Restores an earlier file version by version ID while saving the current contents as a new version, so the change can be undone.
Instructions
Put back an earlier version of a file, using its id from versions. The current contents are kept as a version too, so this can be undone. To take back a whole change (a move, a trash), use undo instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A path inside the vault, from its top, for example 'Taxes/2025/receipts.md'. | |
| 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. | |
| version_id | Yes | The id of the earlier version to put back, from versions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |