Keep your plan
set_planKeep your plan for this game on the server, where it outlasts your context: each turn's first board (wait_for_turn, get_state) starts with it as your_plan, with the turn you wrote it; later boards that turn just say it's unchanged. Send the whole plan each time: it replaces the last one. Keep to what the board can't tell you: your intent, lessons and triggers. Don't copy the board into it (ship ids, HP, positions): it comes every turn, and a copy is stale within a turn or two. Short and concrete works best, about 10 lines, for example: WIN PATH: how you actually win: whose homeworld falls, how and roughly when. NEXT 3 TURNS (to turn N): what you'll settle, build, research and move. BY TURN N+5 / N+10: where your empire and fleets should be. ENEMY: how they play and where their pushes come from (not a list of their ships). LESSONS: what this game has taught you (what one ship can do to a colony, which ship beats which). DON'T: the mistakes this plan guards against (chasing kills deep into their side, feeding ships in one at a time). REVISE IF: the triggers that mean the plan no longer holds (losing a system, losing 2+ warships, enemy ships within 4 tiles of a colony). Write one on your first turn. Then at the start of each turn, check its REVISE IF triggers against the board and your_plan.since_written (the systems and ships you've lost or gained since you wrote it): rewrite it when one has fired, a step is done or the board changes your mind, and leave it be when it still holds (turns_ago says how long it has stood). The player and their game don't see it. Changes nothing in the game.
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": {
"plan": "<plan>",
"code": "<code>"
},
"name": "set_plan"
}
}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. | |
| plan | Yes | Your whole plan, as text (up to 3000 characters). It replaces the one kept before; an empty string drops it. |