Skip to main content
Glama

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

NameRequiredDescriptionDefault
ppiNo
gridNo
formatNopng
max_pxNo
qualityNo
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: it discloses the 16384 px hard limit and that oversized exports are refused up front, the tracked-operation timeout ceiling of 600s, and the fact that edits, camera moves and screenshots are refused while rendering. It also notes the editor grid is restored afterwards and that max_px only shrinks the returned copy, not the on-disk file.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well structured into per-parameter paragraphs with the purpose front-loaded, and nearly every sentence carries unique information. Minor redundancy remains, such as restating that max_px makes the copy you look at smaller after already saying it shrinks the returned image while the file keeps ppi.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, zero-annotation, no-output-schema render tool, the description covers the return value, failure modes, the concurrency lockout, and post-export state restoration. Nothing an agent needs in order to call it correctly or recover from a timeout is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it documents all six parameters: ppi as the render-speed/resolution knob, format values and default, quality range applicability to jpg/webp, grid tri-state behavior including the omit-default, max_px semantics against the written file, and the timeout ceiling. This is meaning well beyond the bare schema types and defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: 'Render the entire current map to a clean image (no UI) and return it.' It also explicitly routes the .dd2vtt case to export_dd2vtt, so an agent can distinguish it from that sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance (gridless image for sharing, or VTTs that draw their own grid; grid=True to force), names the alternative tool for full VTT files, and states what to do on timeout (retrieve with get_export rather than re-exporting). Exclusions and alternatives are both covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools