snapshot_restore
Restore a document to a previous snapshot only if the current revision matches the expected revision, preventing accidental overwrites of newer changes.
Instructions
Guarded snapshot restore with explicit current revision. Inspect current changes first; use document_duplicate to compare without modifying current work.
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>",
"snapshotId": "<snapshotId>",
"operationId": "<operationId>",
"actor": "<actor>",
"expectedRevision": "<expectedRevision>"
},
"name": "snapshot_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | ||
| documentId | Yes | ||
| snapshotId | Yes | ||
| operationId | Yes | ||
| expectedRevision | Yes |