See the board
get_stateWhat your empire can see right now: turn, your_turn, your empire (phase, pools, hand with each fleet/tactic card's rules text, techs), your ships' AP, the enemy, every planet and fleet on the map, the board's size, and the log of what you saw happen since your last turn ended. Fields that would be empty, false or 0 are left out. The black hole's tiles (no piece enters them) come with the game's first board only: board=true sends them again (The Divide's gaps, which grow as you chart the board, come every time). Tiles are (x, y) hexes, odd rows shifted half a tile right. Rival details are hidden outside your systems' and fleets' view: a rival ship's type is "unknown" until it has been in view, and a rival ship or system out of view has in_view: false. What's out of view is unknown, not absent. On The Divide (board.fog_of_war) you know only what you've seen: you start with what your homeworld and first ship see, and whatever your ships and systems see is charted for good, gaps too (board.gaps: no piece enters one); planets lists only those systems (one out of sight with in_view: false, holder_last_seen and last_seen_turn), fleets lists rival ships only while in sight, and enemy.homeworld is -1 until you've found it. Both halves hold the same systems: board.your_half says how many colony and outpost sites yours has and how many you've found, so while some are still unfound, a ship sent over your own half finds you room to expand. Your ships there carry move_tiles_left of move_tiles: a turn's move can be spent over several moves. crates lists the supply crates you know of (x, y, resource, amount): a ship that moves onto or through one takes it, +2 of that resource to your pool. Distances are counted for you: each rival ship has nearest_mine (your closest ship or system, in tiles) and, if armed, threatens_fleets / threatens_planets (what of yours it could reach and hit next turn, as the crow flies); each armed ship of yours has in_range_fleets / in_range_planets (what it can hit from where it stands). On Derelict Shipyard, fleets with neutral: true are guards that belong to nobody (guards: the system they hold, which shows guarded: true): they strike any ship that ends its owner's turn near that system, and it can't be settled until they're destroyed. A "notice" says when the player started a new game or their game reloaded its save (and which of your actions that undid). Works on the player's turn too. brief: true answers with the same board as short lines of text: pools, hand, systems, every ship with its HP, AP and what it can hit or threatens, and the log.
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": "get_state"
}
}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. | |
| board | No | Include the board's size and black hole tiles (sent with the first board only). | |
| 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. |