Undo: restore a previous version
restore_versionUse to undo changes: restores a saved version (numbers from get_site with history: true), pages and live parts (menu prices, products, posts…), as a new version, so it can itself be undone. Visitors' messages, bookings and orders are never changed.
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": "<version>"
},
"name": "restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true after the owner agreed to restore although something can't go back (the first answer lists it). | |
| site_id | Yes | The site id: the first part of the site URL, e.g. "bella-roma" for https://bella-roma.ginta.page (see list_sites). | |
| version | Yes | Version number to restore. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The site's address. | |
| text | Yes | The answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents). | |
| parts | No | Live parts that went back too ("menu"…). | |
| version | Yes | The new live version. | |
| not_restored | No | What couldn't go back, in plain sentences. | |
| restored_from | Yes | The version that was restored. |