add_move
Submit a chess move in UCI format (like e2e4) for validation. If legal, updates the game state and returns the new status; otherwise, indicates the move is illegal.
Instructions
Apply a move in UCI format if legal.
Parameters:
uci: string like "e2e4", "g1f3", promotions like "e7e8q".
Returns (in result):
On success: { accepted:true, status: Status, moves:[...], moves_detailed:[...] } where Status is the same shape returned by get_status(), including last_move_{uci,san}.
On failure: { accepted:false, reason:"illegal", expected_turn:"white"|"black", status: Status }
Notes:
This tool validates legality only; it does not suggest or score moves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uci | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |