---
title: "Generate a hex map and export as SVG"
method: POST
path: "/api/tools/hex_export_svg"
---

# Generate a hex map and export as SVG

`POST /api/tools/hex_export_svg`

## Request

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

## Request body

- object
  - `game` string, required: Game type
  - `players` number: Number of players
  - `size` number: Map size
  - `seed` string: Random seed
  - `style` string: Visual style
  - `hexSize` number: Hex size in pixels (default: 30)

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