Restore a Page revision
restore_page_revisionPut an earlier revision's title, emoji, cover, Type, properties, and body back as a new revision, keeping everything after it in history. The Page's location and trash state stay as they are, and a trashed Page's revisions can't be restored until the Page is. The current revision can't be restored. expectedVersion is the Page's current version. textOnly restores only the title and body, for when the earlier properties no longer fit (INVALID_PROPERTIES, TYPE_NOT_ACCESSIBLE, or FILE_NOT_ACCESSIBLE).
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": {
"workspaceId": "<workspaceId>",
"pageId": "<pageId>",
"revisionId": "<revisionId>",
"expectedVersion": "<expectedVersion>"
},
"name": "restore_page_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| textOnly | No | Restore only the title and body, keeping the current emoji, cover, Type, and properties. | |
| revisionId | Yes | ||
| workspaceId | Yes | ||
| expectedVersion | Yes | The Page's current version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||