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.
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": {
"uci": "<uci>"
},
"name": "add_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uci | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |