fit_elements
Frames an entire map or selected elements and computes the zoom to fit, so you can screenshot the result. Pass element IDs to focus on specific items.
Instructions
Frame the whole map, or a group of elements, then screenshot() to see it.
ids: omit to frame the entire map — this is the normal way to look at your
work. Pass ids to frame just those elements instead; ids without a
position are skipped and listed in the 'missing' field.
pad: extra margin as a fraction (0.15 = 15%). The zoom is the closest
Dungeondraft zoom level that still fits, at most 800%.
Prefer this over set_camera: it computes the zoom for you, and set_camera's
zoom is woxels-per-pixel, which runs backwards from the intuition that a
bigger number means closer.
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": "fit_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| pad | No |