Restart the game
restartResets a Twine story to its start, optionally with a new SugarCube PRNG seed, then returns the first observation.
Instructions
Restart the story from the beginning (optionally with a new PRNG seed). Returns the first observation (text; format:"json" for JSON).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | New SugarCube PRNG seed. | |
| format | No | Output format: "text" (default, human-readable) or "json" (JSON string for programmatic use). | |
| game_id | Yes | Session id returned by open_game. |