Load an in-session snapshot
load_stateRestore a snapshot to return to an earlier story state, enabling branch exploration and replay during Twine game testing.
Instructions
Restore a snapshot created by save_state and return the resulting observation (text; format:"json" for JSON).
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": {
"game_id": "<game_id>"
},
"name": "load_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Snapshot name (default "default"). | |
| format | No | Output format: "text" (default, human-readable) or "json" (JSON string for programmatic use). | |
| game_id | Yes | Session id returned by open_game. |