fill_region
Paint a rectangle or polygon region with a terrain slot in woxel coordinates, optionally assigning an asset and paint strength. Use it for localized fills instead of whole-level changes.
Instructions
Fill only a region with a terrain slot (e.g. floor a single room), in woxel coords.
Unlike fill_terrain (whole level), this paints inside a shape. Provide ONE of:
rect: [x, y, w, h] axis-aligned rectangle, or
points: [[x,y], ...] a polygon (3 to 2000 points). Split a larger outline
into polygons that share edges; a shared edge paints each pixel once.
asset: optional Terrain asset to assign to the slot first.
rate: paint strength 0..1 (1 = fully replace). Undoable via undo().
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": "fill_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| rect | No | ||
| slot | No | ||
| asset | No | ||
| points | No |