---
title: "Compute field of view from a hex position"
method: POST
path: "/api/tools/hex_compute_fov"
---

# Compute field of view from a hex position

`POST /api/tools/hex_compute_fov`

## Request

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

## Request body

- object
  - `q` number, required: Origin Q coordinate
  - `r` number, required: Origin R coordinate
  - `range` number, required: Vision range in hexes
  - `game` string: Game context for obstacle lookup
  - `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)
