arrange_objects
Places furniture against walls, around tables, or on surfaces in one undo step, fitting each asset to its drawn area for accurate battle-map layouts.
Instructions
Lay furniture out against a wall, around a table, or on a surface, in ONE undo step.
Fitted to each asset's DRAWN area (list_assets `drawn`, the target's
opaque bounds), never its canvas, so a shelf sits flush to its wall.
`assets` are used in turn, repeated to `count`.
mode='along_wall': backs a row against a wall, fronts into the room.
along: [[x0, y0], [x1, y1]], the stretch of wall to line. The nearest
parallel wall within 96 woxels is used and reported; `warnings` names
any other wall that close (a double wall where two build_room rooms
meet: pass wall_id). Corners and portals are kept `margin` (32) clear.
toward: a point on the room side; needed when the wall is not a loop.
count omitted fills the stretch. gap: fixed spacing, centred; omitted,
spare room is shared evenly.
mode='around': seats `count` (4) assets around target_id, each facing it.
shape 'auto' is round when the table's name says round, else rect
(seats per side by length). clearance: gap from the table's drawn edge,
negative tucks under (-16). jitter adds a few degrees and woxels so the
table does not read as a grid.
mode='on_surface': sets `count` (3) items inside target_id's drawn area,
`margin` (12) from its edge, turned a little, not overlapping. Layer
defaults to one above the surface: 1100 over a 900 surface only with the
Unofficial Patch, else refused.
facing: where each asset's front points at rotation 0. 'down' is how
Dungeondraft's own furniture is drawn; pack art may differ, so look, and
pass the facing it has. The reply says which was used.
dry_run: plan only, place nothing. Returns `objects` (with ids when
placed), `skipped` for items with no room, and `seed`. One undo() reverses
it; color is baked at placement, as in place_object.
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": {
"mode": "<mode>",
"assets": "<assets>"
},
"name": "arrange_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | ||
| mode | Yes | ||
| seed | No | ||
| along | No | ||
| color | No | ||
| count | No | ||
| layer | No | ||
| scale | No | ||
| shape | No | auto | |
| assets | Yes | ||
| facing | No | down | |
| jitter | No | ||
| margin | No | ||
| toward | No | ||
| dry_run | No | ||
| wall_id | No | ||
| clearance | No | ||
| target_id | No |