---
title: "Get all legal moves for the current position. Requires state from play_create_game or play_apply_move."
method: POST
path: "/api/tools/play_get_moves"
---

# Get all legal moves for the current position. Requires state from play_create_game or play_apply_move.

`POST /api/tools/play_get_moves`

## Request

- Base URL: `https://tools.moddable.games`
- URL: `https://tools.moddable.games/api/tools/play_get_moves`
- Auth: none declared

## Request body

- object
  - `state` object, required: Game state object returned by play_create_game or play_apply_move

## 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)
