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
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | [x, y, w, h] in woxels to frame before the capture. | |
| center | No | [x, y] in woxels to center on. | |
| max_px | No | ||
| tiles_across | No | Tiles the view spans left to right. |