Play moves and get the resulting position
apply_movesPlays a sequence of moves (SAN like "Nf3" or UCI like "g1f3") from a position, checking each one is legal, and returns the resulting FEN and game status. Use it to turn a move list into a position.
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": {
"moves": "<moves>"
},
"name": "apply_moves"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | No | Position in FEN notation, e.g. "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1". Omit for the starting position. | |
| moves | Yes | Moves in order, e.g. ["e4", "e5", "Nf3"] or ["e2e4", "e7e5"]. |