---
title: "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."
method: POST
path: "/api/tools/play_validate_move"
---

# 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

- object
  - `state` object, required: Game state object from play_create_game or play_apply_move
  - `move` object, required: Move object to validate (same format as play_get_moves output)

## Response `200`

Tool result

---

[API](https://skmtc.dev/moddable/apis/moddable-games-tools.md) · [All operations](https://skmtc.dev/moddable/apis/moddable-games-tools/llms.txt) · [OpenAPI document](https://skmtc.dev/moddable/apis/moddable-games-tools/revisions/637a0b62cb9a?raw)
