Roll a site back to an earlier version
restore_versionRestore a site to a previous version from list_versions. NON-DESTRUCTIVE: the restore is written as a NEW version on top of the history rather than deleting anything, so nothing is lost and the restore itself can be undone by restoring the version that preceded it. Optionally scope to one page (file_slug) or one design variation (variation_index). Tell the user which version you are rolling back to and why before calling this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to roll back | |
| version | Yes | Version number from list_versions | |
| file_slug | No | Restore only this page, leaving the rest of the site untouched | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| variation_index | No | Restore into this design variation's slot |