document_restore
Restores an owner-bound snapshot only when the current document revision matches exactly, preventing stale overwrites.
Instructions
Restores an owner-bound snapshot only when the current document revision matches exactly.
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": {
"expectedRevision": "<expectedRevision>",
"path": "<path>",
"snapshotId": "<snapshotId>",
"workspaceId": "<workspaceId>"
},
"name": "document_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| snapshotId | Yes | ||
| workspaceId | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | Yes | ||
| backupCreated | Yes |