Check whether a move is legal in the current position without applying it. Pass the move object in the same format as play_get_moves returns.

post/api/tools/play_validate_move

Request

  • Base URL: https://tools.moddable.games
  • URL: https://tools.moddable.games/api/tools/play_validate_move
  • Auth: none declared

Request body

stateobject required

Game state object from play_create_game or play_apply_move

moveobject required

Move object to validate (same format as play_get_moves output)

Response

Tool result

Changes

No recorded changes to this operation across all 1 revision of this API.