Restore Document Version
restore_document_revisionBring an earlier saved version of a document you own back as the current content. This is written as a new version, so nothing in the history is lost and the restore itself can be undone. Pass if_match to refuse if the document changed since you looked. Fails if that version is no longer kept, or if it is larger than your plan allows today.
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": {
"slug": "<slug>",
"revision": "<revision>"
},
"name": "restore_document_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The slug of the document | |
| if_match | No | Revision (such as "r12") from your last read. If the document has changed since, nothing is written. | |
| revision | Yes | The version to bring back, such as "r12" (see list_document_revisions). | |
| idempotency_key | No | Any string up to 128 characters. A retry with the same key returns the original result instead of writing again. |