scatter_objects
Randomly scatters assets across a rectangular battlemap area with varied scale, rotation, spacing, and optional exclusion zones to furnish lived-in spaces without manual coordinate placement.
Instructions
Scatter objects randomly over a rectangular area, with jittered scale and rotation.
This is the tool to reach for when a space should look furnished or lived-in
rather than placed-at-coordinates: foliage, rubble, crates, clutter, debris.
Placing twenty objects individually reads as a grid; this does not.
assets: one or more Objects asset paths from list_assets(category='Objects').
Each placement picks one at random, so pass a few related assets for variety.
rect: [x, y, w, h] in woxels. 256 woxels = 1 tile.
count: how many to place (1-500).
scale_min / scale_max: random scale range per object.
rotation_min / rotation_max: random rotation range in degrees.
min_gap: minimum woxel distance between placements. Use it to stop clumping;
too large for the area and you get fewer than `count` (the response says so).
color: optional '#rrggbb' applied to every placement, baked at placement
and never changeable afterwards. Only colourable assets respond — see
place_object.
seed: fixes the arrangement so a run is reproducible. Pass one when you want
to adjust a single parameter and compare, rather than reshuffling everything.
layer: layer VALUE for every placement (multiple of 100, -500..900, or 1100
with the Unofficial Patch). Same
meaning as in place_object; 100 is the default.
wall_margin: keep each object's drawn art at least this many woxels off
every wall (0 = art may touch, never cross). The rect bounds only
centres, so without it a tree's crown lands over a wall.
avoid_rects: up to 32 [x, y, w, h] areas no object's art may reach into:
a path, a doorway, a building.
With either, the reply counts `kept_out` attempts.
Returns the ids placed, how many attempts it took, and a note if it could not
fit the requested count.
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": {
"assets": "<assets>",
"rect": "<rect>"
},
"name": "scatter_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | Yes | ||
| seed | No | ||
| color | No | ||
| count | No | ||
| layer | No | ||
| assets | Yes | ||
| min_gap | No | ||
| sorting | No | ||
| scale_max | No | ||
| scale_min | No | ||
| avoid_rects | No | ||
| wall_margin | No | ||
| rotation_max | No | ||
| rotation_min | No |