---
title: "Get board diagram SVG URL for a game variant. Returns the diagram path, topology, and rendering metadata."
method: POST
path: "/api/tools/rules_get_diagram"
---

# Get board diagram SVG URL for a game variant. Returns the diagram path, topology, and rendering metadata.

`POST /api/tools/rules_get_diagram`

## Request

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

## Request body

- object
  - `game` string, required: Game family slug (e.g. chess, go, agon)
  - `variant` string: Variant slug (default: standard)

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