In-session snapshots (save / load / list)
snapshotSave, restore, or list named game states to explore branches and compare outcomes without replaying from the start.
Instructions
Branch exploration: save stores the current state under a name, load restores it, list shows what exists. Native on SugarCube, Chapbook and Snowman; Harlowe reports unsupported.
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": "snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Snapshot name (default "default"; required for save/load). | |
| action | Yes | save, load or list. | |
| format | No | "text" (default) or "json". | |
| game_id | No | Session id from open_game. Omit when a single game is open. |