Preview restoring a recovery checkpoint
tiled_preview_checkpoint_restoreValidate a checkpoint and its expected revision to preview a destructive restore proposal without writing. Ensures safe restoration of a single document, even if the target file is missing.
Instructions
Validates one checkpoint and its exact pre-write JSON bytes, pins the current target revision, and returns a destructive restore proposal without writing. When the target file is missing (deleted through tiled_delete_file or externally), expectedRevision must equal the checkpoint's restorable content revision and the approved restore recreates the file with no-replace semantics. Only that document is restored; referenced tilesets, images and other files are not.
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": {
"checkpointId": "<checkpointId>",
"expectedRevision": "<expectedRevision>"
},
"name": "tiled_preview_checkpoint_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checkpointId | Yes | ||
| expectedRevision | Yes | SHA-256 revision returned by a read or preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |