AI makes mistakes! Undisk makes recovery instant: every write is versioned, every file is reversible.
See it heal →

What it does

Undo any file change by restoring to a prior version. This is the core undo operation. Call list_versions first to find the version ID, then restore to instantly revert. A new version is created with the restored content, so the restore itself is versioned and reversible.

Required scope

versions:write

Parameters

ParameterTypeRequiredDescription
pathstringYesPath of the file to restore
version_idstringYesTarget version ID to restore to (from list_versions output)