Restore a saved version
restore_versionPut a document back to one of its saved versions, as History's Restore does: its blocks, bibliography and page setup become the version's. The version id comes from list_versions, or is the undo.versionId an edit's reply gave (restoring it undoes every change made since). The document as it is now is saved first and the reply gives that version's id: restore it the same way to undo the restore. Only someone who may edit the document can restore it.
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": {
"documentId": "<documentId>",
"versionId": "<versionId>"
},
"name": "restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versionId | Yes | The version id, from list_versions or an edit's undo.versionId. | |
| documentId | Yes | The document id. |