Restore Website Version
site_restoreRestores the website (or a single file/folder) from an automatic snapshot listed by
site_versions — this is how you undo an overwritten or lost change. path restores just that
file/folder (e.g. 'index.html' or 'blog/'); leaving it empty restores the WHOLE site to that
snapshot. confirm=false previews what would change; confirm=true applies it (live immediately).
The current state is snapshotted before restoring, so a restore is itself undoable.
IMPORTANT: if the site is produced by a generator (a source folder + build script), restore
gets the content back but the NEXT rebuild will overwrite it again — port the recovered
content into the generator source too, or the loss repeats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| site | No | ||
| server | No | ||
| confirm | No | ||
| version_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||