Click a choice
chooseClick a passage choice by number or label, including dialog buttons, then wait for the game to settle and return the new observation. Pass expected to guard against wrong links.
Instructions
Click a passage choice by its 1-based number from the last observation, or by (partial) label text. Numbered choices include dialog buttons (tagged [dialog] in observations) — so choose() answers dialogs too. Waits for the game to settle and returns the new observation. Pass expected to guard against clicking the wrong link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | 1-based choice number from the last observation, or label text (case-insensitive, may be partial if unambiguous). | |
| format | No | Output format: "text" (default, human-readable) or "json" (JSON string for programmatic use). | |
| game_id | Yes | Session id returned by open_game. | |
| expected | No | Substring the clicked choice label must contain; fails safely if it does not match. | |
| allow_external | No | Allow following links that leave the game (default false, they are blocked). |