Put a saved copy back
save_restoreRestores a world and character snapshot to disk, first copying the current state to auto-before-restore so the destructive overwrite can be undone.
Instructions
Overwrite the world and characters with a snapshot.
Args:
label: The snapshot to put back.
world: WINDOWS path to the .wld. Defaults to the world the snapshot
holds, and must be that world when given. Refused without it when
the last session from this server loaded a different world: the
restore would leave the world that run changed as it is.
This DESTROYS what is on disk now, so it saves that first: the state being
overwritten is copied to auto-before-restore and returned as undo,
which save_restore accepts like any other label. A restore aimed at the
wrong snapshot is therefore recoverable rather than final.
The undo is NOT re-taken when that would overwrite the original with
nothing unique: after a restore that failed partway (retrying keeps the
original in auto-before-restore), or when the save is still exactly what
the last restore put back (undo is then that snapshot's label, and the
earlier undo survives). undo_kept says which.
Both cases are checked against the files on disk. If the save holds files
no snapshot holds while the undo must be kept (the game was played after a
failed restore), or while restoring auto-before-restore itself, this
refuses and names them: take save_snapshot first, then restore again.
Refuses while the game is running, and refuses a label that does not exist by listing the ones that do.
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": {
"label": "<label>"
},
"name": "save_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| world | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| undo | Yes | ||
| files | Yes | ||
| label | Yes | ||
| removed | Yes | ||
| undo_kept | Yes |