Get Chess Game State
game_stateGet the authoritative chess position: FEN, turn, castling rights, move history, last move, and check/mate/draw flags. Set include_ascii to true to visualize the board.
Instructions
Return the authoritative state of a game: FEN, turn, revision, check/mate/draw flags, move history, last move, castling rights. Use this instead of remembering the board. Set include_ascii=true to also get a board diagram.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game_id | Yes | ||
| include_ascii | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | Yes | ||
| turn | Yes | ||
| board | No | ||
| isDraw | Yes | ||
| game_id | Yes | ||
| history | Yes | ||
| isCheck | Yes | ||
| castling | Yes | ||
| lastMove | Yes | ||
| revision | Yes | ||
| isGameOver | Yes | ||
| moveNumber | Yes | ||
| isCheckmate | Yes | ||
| isStalemate | Yes | ||
| isDrawByFiftyMoves | Yes | ||
| isThreefoldRepetition | Yes | ||
| isInsufficientMaterial | Yes |