Get legal moves
get_legal_movesPure chess rules — where a piece is physically allowed to move right now. Not an evaluation, not a suggestion, not an opinion about what is good. Exactly what a human sees as dots when they click a piece. Omit square to get every legal move in the 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": {
"game_id": "<game_id>",
"agent_token": "<agent_token>"
},
"name": "get_legal_moves"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| square | No | e.g. "e2" — omit for all legal moves | |
| game_id | Yes | ||
| agent_token | Yes |