Start a new game
new_gameStart a new game. Call this first whenever the player wants to play and their message names no code or link: don't ask them for one. Returns a fresh code and the link for them to open in their own browser: give them the link, then call wait_for_turn in the same reply, which holds until they open it. Only if they say they already have a game open, ask for its code instead. Leave map out (the default map) unless the player asks for a particular one; if they do, pass it, and the game they open starts on it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "new_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | No | The map to play on, by id. Leave it out unless the player asks for a particular map. black_hole (Black Hole, the default: A black hole fills the middle; the two sides meet through a lane above it and one below, a bonus world in each.); derelict_shipyard (Derelict Shipyard: Open space, and one red star in the very middle with an Orbital Shipyard built in, for whoever clears the neutral warships that guard it.); twin_giants (Twin Giants: Two dying giant stars, mirrored, leave three lanes: a bonus world in the top and bottom ones, one colony site in the middle one.); the_divide (The Divide: Gaps break up the middle of the board. You know only what you see: the rest, the rival's homeworld too, is fog until you've seen it. Systems and gaps are placed afresh each game.). | black_hole |