Play Chess Move
game_play_moveExecute a chess move (SAN or UCI) to update the game state, returning the new position. Provide the expected revision to avoid stale moves.
Instructions
Play a move (SAN like 'e4' or UCI like 'e2e4') and return the resulting state. This is the ONLY tool that mutates the game. expected_revision is required: pass the revision from your most recent game_state/move_candidates read. If the game has advanced since then, the move is rejected with STALE_POSITION.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | Yes | ||
| game_id | Yes | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | Yes | ||
| move | Yes | ||
| turn | Yes | ||
| 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 |