Roll back site
rollback_siteUse when the user wants to undo the last update or go back to the previous version. Restores a prior version's content as the site's current content (records a new version). Content only: the slug, folder, visibility and any /lp address stay as they are now, so a rollback after a rename does not change the address (the old one keeps forwarding to the current one; set_site_slug puts it back). The share URL is unchanged and open viewers are offered a Refresh to it (a landing page shows it on its next load). Use list_versions to find the version_id. On a website this changes the public site now; ask first. A waiting preview must then be made again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"version_id": "<version_id>"
},
"name": "rollback_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The id of the site to roll back | |
| version_id | Yes | The id of the version to restore (from list_versions) | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |