export_map
Render the entire current battle map to a clean, UI-free image with configurable resolution, format, and grid, for sharing or VTT use.
Instructions
Render the entire current map to a clean image (no UI) and return it.
ppi controls resolution (pixels per grid cell): higher = sharper but larger/slower.
Dungeondraft abandons any export wider or taller than 16384 px without a
word, so one that large is refused up front with the highest ppi this map
allows.
format: 'png' (default), 'jpg' or 'webp'. quality (1-100, default 90)
applies to jpg and webp.
grid: False for a gridless image, the usual deliverable for sharing and
for VTTs that draw their own grid; True to force it on. Omitted, the
export matches the editor. The editor's grid is put back afterwards.
The render is a tracked operation: this waits up to `timeout` seconds
(max 600). If that runs out, the error names the operation; collect the
image with get_export rather than exporting again. While an export renders,
edits, camera moves and screenshots are refused — the exporter renders by
moving the camera, and any of those would corrupt the image.
max_px: shrink the long edge of the image RETURNED to you. The file written
to disk keeps the resolution `ppi` asked for, so this costs the delivery
nothing — it only makes the copy you look at smaller. `ppi` is the knob
that makes the render itself faster.
For a Universal VTT file (.dd2vtt) with walls, doors and lights, use
export_dd2vtt.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppi | No | ||
| grid | No | ||
| format | No | png | |
| max_px | No | ||
| quality | No | ||
| timeout | No |