Previous version HTML
get_previous_version_htmlRead back the full HTML of an EARLIER published version of a page. Versions are immutable, so this is what that version actually shipped. Two uses: recovering something an later edit removed without rolling the whole page back, and the optimize loop — read the version that converted better, compare it against the live one from get_published_html, and see what the change actually was. Use list_versions to find the label. To make an old version live again, that is rollback, not this.
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": {
"pageId": "<pageId>",
"version": "<version>"
},
"name": "get_previous_version_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page to read, as returned by list_pages. | |
| version | Yes | The version label to read, e.g. "v2". Use list_versions to see what exists. |