restore_document_version
Restore a prior version of a workspace document as the new current bytes. Reversible: the current bytes are snapshotted as a new version first. Requires write access to the document. Refused with code DOCUMENT_LOCKED_FOR_APPROVAL while a workflow approval is open on the document.
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>",
"versionNumber": "<versionNumber>"
},
"name": "restore_document_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | WorkspaceDocument id. | |
| versionNumber | Yes | The version number to restore (>= 1). |