Save an in-session snapshot
save_stateStores the complete game state under a named snapshot to branch playthroughs: test one path, reload, then try another. Works natively with SugarCube.
Instructions
Save the full game state under a name so you can branch: save -> try a path -> load_state -> try another path. Supported natively by SugarCube; other formats report 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": {
"game_id": "<game_id>"
},
"name": "save_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Snapshot name (default "default"). | |
| game_id | Yes | Session id returned by open_game. |