Skip to main content
Glama

screenshot

Captures the current Dungeondraft window view as an image, optionally framing a region or centering on a point. Use it to check what is on screen and get the saved file path.

Instructions

Capture the current Dungeondraft window (the on-screen view) and return it as an image.

Fast; shows exactly what's visible including the current camera framing —
so AIM FIRST, or you photograph whatever the last call left on screen:
focus_element(id) for one thing, fit_elements() for the whole map. For a
clean full-map render without UI, use export_map.

Or aim in the same call: rect=[x, y, w, h] frames that area (woxels; the
longer side fits), or center=[x, y] with tiles_across=N looks at N tiles
of width around a point. Either alone keeps the other's current value.
Zoom moves in fixed steps, so the view may show more than asked, not less
(up to the widest zoom). The camera stays there afterwards.

max_px: shrink the image's long edge to this before returning it. Omit for
  the full capture. Worth setting when you are checking placement or
  coverage rather than judging materials and detail — a smaller image is a
  cheaper thing to look at, and every image stays in the conversation.

The result also names the saved file, at full resolution. The user does not
see the image you receive, so when they ask to see the map, give them that
path. Captures are kept until newer ones replace them (20 by default;
exports are counted separately).

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": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
rectNo[x, y, w, h] in woxels to frame before the capture.
centerNo[x, y] in woxels to center on.
max_pxNo
tiles_acrossNoTiles the view spans left to right.

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 persistent side effects (zoom moves in fixed steps and may overshoot; the camera stays where it was left), that the user does not see the returned image and must be given the saved path, and the retention policy (20 captures kept, exports counted separately).

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 with purpose and the aiming prerequisite, then parameter guidance in short labeled blocks. Slightly verbose in the max_px rationale ("a cheaper thing to look at, and every image stays in the conversation"), though that does inform the decision rather than pad it.

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?

No output schema exists, yet the description explains what comes back (the image plus the saved full-resolution file path) and what happens to old captures, covering the side effects and lifecycle an agent needs for a stateful viewport tool.

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 75%, but the description goes well beyond it: rect is explained as woxels with the longer side fitting, center plus tiles_across as N tiles of width, and crucially that supplying one keeps the other's current value. max_px is explained as shrinking the long edge, with omit-for-full-capture guidance that the schema lacks entirely.

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?

The opening sentence states a concrete verb and resource: capture the current Dungeondraft on-screen view and return it as an image. It immediately distinguishes itself from export_map ("clean full-map render without UI") and positions itself as the viewport-capture sibling.

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 routing: aim first with focus_element(id) or fit_elements() before capturing, use export_map for a clean full-map render, and set max_px when checking placement rather than judging detail. It also states the failure mode of not aiming — you photograph whatever the last call left on screen.

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