restore_document_revision
Restores the document to the state of a past revision — replaces its title, content and language with those of that revision, exactly as a manual update_document would with that content. expectedVersion (required, as for update_document) is the version you read via get_document before this call: if it has diverged, the call fails naming the current version rather than overwriting a concurrent write. The state OVERWRITTEN by the restoration is itself kept as a new revision — restoring is never a loss, only one more round trip in the history. ⚠️ REFUSED on a kind: "html" document, which has no history: its source is authoritative and is replaced with update_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>",
"revisionId": "<revisionId>",
"expectedVersion": "<expectedVersion>"
},
"name": "restore_document_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Document identifier, obtained via list_documents. | |
| revisionId | Yes | The revision to restore — obtained via list_document_revisions. Its title, content and language REPLACE those of the current document, identical to what they were when this revision was kept. | |
| expectedVersion | Yes | The document version you believe you are restoring over (obtained via get_document). If it has diverged since, the call fails with the current version rather than overwriting a concurrent write. | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |