set_camera
Pan or zoom the Dungeondraft editor camera to a world coordinate and zoom level, then take a screenshot to inspect the framed view of your battle map.
Instructions
Pan and/or zoom the editor camera. Returns the resulting camera state.
x, y: world (woxel) center to move the view to (omit to keep current).
zoom: Camera2D factor (LARGER = zoomed OUT). It lands on the nearest of
Dungeondraft's own zoom levels, 4 / percent: 0.5 = 800%, 4 = 100%, 40 = 10%.
zoom_label in the reply is the zoom the editor's zoom menu then shows.
Follow with screenshot() to see the framed view.
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_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| zoom | No |