Panel: restore scene checkpoint
view_restoreApp-only adapter for the panel's Restore and Undo restore buttons, used after the user chooses a history entry. Replaces the current scene with a checkpoint and can discard subsequent manual or AI edits. Supply checkpoint_id or before_request_id from the history records. undo_restore also requires expected_current_checkpoint_id to reject a changed current scene. Returns updated history and the restore result; cross-file restoration is refused. Use view_history to read the panel history, or scene_checkpoints for model-driven history actions.
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": {
"action": "<action>"
},
"name": "view_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Restore the selected history target, or return from a previous restore with a current-checkpoint guard. | |
| request_id | No | Optional identifier for this restore request. | |
| checkpoint_id | No | Checkpoint identifier from history; supply this or before_request_id. | |
| before_request_id | No | Restore the checkpoint before this recorded operation; alternative to checkpoint_id. | |
| expected_current_checkpoint_id | No | Current checkpoint identifier expected by the panel; required for undo_restore. |