get_state
Fetch the current board, legal moves, and move history for a game ID to help an AI plan its next board game move.
Instructions
Show the board as you see it, your legal moves and what has happened so far.
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": {
"game_id": "<game_id>"
},
"name": "get_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game_id | Yes | Id returned by new_game. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | ||
| board | Yes | The board as you see it. | |
| notes | Yes | Facts about the position you are allowed to know. | |
| status | Yes | ||
| game_id | Yes | ||
| history | Yes | Everything that has happened, as you saw it. | |
| you_are | Yes | Your player number. Player 1 moves first. | |
| opponent | Yes | ||
| legal_moves | Yes | Moves you can play now. Empty when the game is over. |