set_map_size
Resizes the current battle map in tiles using Dungeondraft's Change Map Size, resizing terrain, cave, and floor rasters so saved maps reopen correctly.
Instructions
Resize the current map, in TILES (a tile is 256 woxels).
Uses Dungeondraft's own Change Map Size resize, so every level's terrain,
cave and floor-tile rasters are resized and the saved map reopens. Each
side must be 8 to 128 tiles, or 1 to 200 with the Unofficial Patch loaded
(get_status.unofficial_patch). The top-left origin is kept: the map grows or
shrinks on the right and bottom, nothing placed is moved, and shrinking
does not delete what ends up outside. Set the size before laying out.
To trim from the top or left too, use crop_map.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"width": "<width>",
"height": "<height>"
},
"name": "set_map_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes |