List legal chess moves
legal_movesLists every legal move in a position, in standard notation (SAN) and UCI, optionally only for the piece on one square. Use it to check whether a move is legal.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "legal_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. | |
| square | No | Only list moves for the piece on this square, e.g. "g1". |