place_prefab
Insert a named Dungeondraft prefab at exact map coordinates to furnish rooms with complete assemblies, then adjust or undo placement as needed.
Instructions
Place one of Dungeondraft's pre-composed prefabs by name.
Call list_prefabs first to see what exists — names must match exactly.
Reach for this before hand-composing a common furnished unit. A tavern's
tables, a market stall, a smithing setup or a well already exist as prefabs
and will look better assembled than placed piece by piece.
ALWAYS pass x and y. A prefab otherwise lands wherever its author saved it,
usually near the map's top-left corner. With x and y the prefab's centre
lands there, and `placement` in the response reports what moved. If it
still lands wrong, undo() removes the whole prefab in one step while it is
the latest operation.
name: exact prefab name from list_prefabs.
set: optionally switch set first.
x, y: woxel point to centre the prefab on. Pass both or neither.
rotation: degrees to turn the whole prefab about its centre.
snap: snaps the centre x, y; see get_snap_settings.
Placement transforms walls with their mounted portals, paths, roofs,
patterns, objects, lights, freestanding portals, and text anchors (labels
stay upright). Cave-generated walls and unsupported elements are listed
in placement.skipped with reasons in placement.unsupported. Inspect those
and the footprint before repeating. To shift or rotate the group afterwards,
use move_elements with the returned ids — one call, one undo step.
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": {
"name": "<name>"
},
"name": "place_prefab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| set | No | ||
| name | Yes | ||
| snap | No | ||
| rotation | No |