set_trace_image
Overlay a reference image under a battle map to trace floor plans or sketches; adjust scale, opacity, and position, then clear it before final save.
Instructions
Put a reference image under the map to trace over. Returns what applied.
For reconstructing an approved sketch, a published floor plan, or a
hand-drawn dungeon. Load it, size it against the grid, drop its opacity so
your own work reads over it, then build on top — and hide it before the
final render, because it is a guide, not part of the map.
path: an ABSOLUTE path to an image on the machine running Dungeondraft.
scale: size multiplier. Set it so a known distance on the image matches the
grid; guessing here is what makes a traced plan come out the wrong size.
opacity: 0 invisible, 1 opaque. Around 0.3-0.5 is usually enough to follow
without drowning what you are drawing.
center: centre the image on the map.
clear: remove the trace image.
position: [x, y] in woxels (256 per grid square): where the image's
centre sits, applied after center and scale. Centre it, read the reply's
`position`, then set a position that puts a grid line drawn on the image
on a map grid line. It sets rather than nudges, so repeating the call is
harmless. A later center moves the image back to the map's centre and
discards it.
Loading an image shows it and clear hides it. `visible` says whether it is
drawn now and `image_size` is null if the image did not load. Exports never
include it.
The trace SAVES with the map: its absolute path, scale, opacity and position
go into the file and it reloads next time. Anyone else who opens the map gets
a path that doesn't exist on their machine, and a large reference makes every
open slow. Call set_trace_image(clear=true) before the final save_map.
A path Windows can't open (260+ characters, typical of agent temp folders)
is copied to a short path in the bridge's output folder first; the response
says so under `copied_from`.
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": "set_trace_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| clear | No | ||
| scale | No | ||
| center | No | ||
| opacity | No | ||
| position | No |