---
title: "Find shortest path between two hex coordinates"
method: POST
path: "/api/tools/hex_pathfind"
---

# Find shortest path between two hex coordinates

`POST /api/tools/hex_pathfind`

## Request

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

## Request body

- object
  - `startQ` number, required: Start Q
  - `startR` number, required: Start R
  - `endQ` number, required: End Q
  - `endR` number, required: End R
  - `game` string: Game context for movement costs
  - `seed` string: Map seed

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