Wait for your turn
wait_for_turnWait until it's your turn, then return the board (as get_state). Your first call starts the player's game and gives you your empire; if they haven't opened it yet, it waits for them to, answering {"your_turn": false, "game_open": false} when its hold runs out: call it again. Holds up to 50 seconds; if your turn hasn't started by then it returns {"your_turn": false} with how long the player has been on their turn and usually takes: call it again right away (no need to pause, and don't end your reply to wait for the player: their turn ends when this returns). While the player's game tab is hidden (it pauses the game) it waits the same way, with tab_hidden: true, and returns once they're back. It's safe to call repeatedly and can run as a long-running or background call. The player would rather not have a commentary on your turn. Your turn's board starts with your_plan: the plan you kept with set_plan, the turn you wrote it, turns_ago and since_written, the systems and ships you've lost or gained since (null if none). With brief: true, your turn's board comes as short lines of text instead of JSON (far fewer tokens).
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": {
"code": "<code>"
},
"name": "wait_for_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The game's code (like K7M-3XQ), from the player's message. If it names none, get one from new_game rather than asking them. | |
| brief | No | Answer with your board as short lines of text instead of JSON: your pools, hand, systems, every ship with its HP, AP and what it can hit or threatens, and the log. Far fewer tokens. |