Go back to a checkpoint of a website builder draft
restore_website_checkpointUse this when someone wants to undo changes to their website builder draft or go back to an earlier version of it. Returns the new checkpoint, which brings back every file as it was at the checkpoint named; the later ones stay in the history. Not for the settings of the public site.
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": {
"websiteId": "<websiteId>",
"checkpoint": "<checkpoint>"
},
"name": "restore_website_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website id, from get_website_settings | |
| checkpoint | Yes | The checkpoint to go back to, from list_website_checkpoints |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| websiteId | Yes | ||
| builderUrl | Yes | ||
| checkpoint | Yes | The new checkpoint holding the files as they were; null when they already were | |
| restoredCheckpoint | Yes |