Skip to main content
Glama

import_dd2vtt

Rebuilds a Universal VTT (.dd2vtt) export on an open battle map, recreating walls, doors, windows, lights, ambient light, and an optional trace; preview first, then confirm to apply edits.

Instructions

Rebuild a Universal VTT export (.dd2vtt) on the open map.

Without confirm it only reads the file and reports what it would do.
Show the user, then call again with confirm=true. It recreates:
- walls from line_of_sight, rejoined through each doorway so doors mount;
- portals at their exported width: closed ones (a VTT's doors) as
  portal_asset, open ones (its windows) as window_asset. The export has
  no door/window field, so a map that had them reversed comes in
  reversed; compare with the trace;
- lights (colour, range, intensity, shadows) and the ambient light;
- the export's image as a trace under the map (trace=false to skip).

It never picks art: `blockers` lists each sight-blocking object outline
(objects_line_of_sight) as center, rotation, length and width in
woxels. Place a matching blocking object on each with place_objects.

The map must be the export's size (`tiles`); resize=true resizes it
first. A region export is cropped to its region. Build on a new map:
portals mount on the nearest wall, existing walls included.

wall_color: hex tint for the walls, matched to the trace. Empty takes
Dungeondraft's default wall tint, a dark grey, so light walls such as
sandstone come out dark. Set it here: changing it later means redrawing
the walls and re-adding their doors.

One checkpoint, "import_dd2vtt", precedes the edits:
rollback_checkpoint("import_dd2vtt") undoes them, except a resize, the
ambient light and the trace. Hide the trace with
set_trace_image(clear=true) before the final save_map.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "import_dd2vtt"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
traceNo
wallsNo
lightsNo
resizeNo
ambientNo
confirmNo
portalsNo
wall_assetNo
wall_colorNo
portal_assetNores://textures/portals/door_01.png
window_assetNores://textures/portals/window_02.png

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the entire behavioral burden and does so well: it discloses the confirm dry-run gate, that it never picks art, the `blockers` output contract, the checkpoint name and precisely which edits rollback cannot undo (resize, ambient light, trace), and the door/window reversal caveat.

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?

Long but front-loaded: the confirm/dry-run rule comes first, followed by scannable bullets for each recreated element, then the blockers and rollback notes. Density is justified by the 12-parameter surface, though the wall_color paragraph is somewhat sprawling.

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?

For a complex 12-parameter mutation tool with no annotations or output schema, this covers side effects, the confirm protocol, returned blockers, sizing requirements and rollback exceptions. Minor omissions are the per-toggle semantics and any error/failure behavior.

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 the description must compensate, and it explains confirm, trace, resize, portal_asset, window_asset and wall_color (including the dark-grey default and why it matters). Gaps remain for wall_asset and the walls/lights/ambient toggles, whose enable/disable behavior is only inferable from 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 ('Rebuild a Universal VTT export (.dd2vtt) on the open map') and immediately enumerates exactly what is recreated (walls, portals, lights, ambient, trace). It is clearly distinguishable from the sibling export_dd2vtt and from generic import_image.

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

Usage Guidelines4/5

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

Gives an explicit two-phase workflow ('Without confirm it only reads the file... then call again with confirm=true') plus prerequisites ('The map must be the export's size (tiles)') and follow-up guidance (place_objects for art, hide the trace before save_map). It never states when to prefer a different import tool, so it falls short of full when-not coverage.

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