Skip to main content
Glama

export_dd2vtt

Export the open battle map as a Universal VTT file (.dd2vtt/.uvtt) for Foundry, Roll20, and Arkenforge, including walls, doors, windows, lights, and light-blocking object outlines.

Instructions

Write the open map as a Universal VTT file (.dd2vtt) for Foundry, Roll20, Arkenforge and other VTTs. Read-only for the map.

Contains the map image (rendered like export_map), its walls as sight
lines broken at each door and window, every portal (closed = an openable
door, open = a window, which is all a VTT can tell), lights, the ambient
light, and an outline for each object that blocks light.

path: absolute .dd2vtt or .uvtt file to write, in a folder that exists
  (any other extension becomes .dd2vtt). Omitted: beside the saved map,
  named after it. An existing file is refused unless overwrite=true.
ppi: pixels per grid square in the image (Foundry's default is 100).
grid: draw the grid into the image; VTTs usually draw their own.

Object outlines are the drawn area's bounding box, coarser than
Dungeondraft's own export. Check `vtt_reversed_portals` from
validate_floorplan first: a door left open arrives as a window.

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_dd2vtt"
  }
}

Input Schema

NameRequiredDescriptionDefault
ppiNo
gridNo
pathNo
timeoutNo
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.7/5.0
Behavior5/5

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

No annotations, so the description carries full burden and does: discloses write behavior ('write', 'read-only for the map'), overwrite refusal default, extension coercion, default path resolution, and content degradation (bounding-box outlines, door-open becomes window). Documents internal mapping semantics.

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?

Front-loaded purpose sentence followed by content summary and per-param bullets. Long but each paragraph carries information; the door/window mapping aside is necessary for correct interpretation of output.

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

Completeness4/5

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

No output schema and no annotations, so description must define the artifact — it does, itemizing contained data (image, walls, portals, lights, ambient, outlines). Omits timeout semantics and any error/return behavior for the write.

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

Parameters4/5

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

Schema coverage is 0%, so description must compensate and largely does: explains path resolution/extension coercion/refusal, ppi units and default, grid meaning. `timeout` and `overwrite` are covered partly (overwrite via refusal note) but timeout is never mentioned.

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 specific verb + resource: 'Write the open map as a Universal VTT file (.dd2vtt)' and names target platforms. Distinguishes from sibling export_map by explicitly noting content is 'rendered like export_map' but with VTT-specific extras.

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?

Explicit when-to-use via target consumers (Foundry, Roll20, Arkenforge), names validate_floorplan check for `vtt_reversed_portals` as a prerequisite step, and provides per-parameter use cases. Notes when to use grid=false (VTTs draw their own).

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