draw_box
Create rectangular voxel blocks in a Buildup project by specifying start and end cells; use add, paint, or carve modes to build, recolor, or remove part volume.
Instructions
Add, paint or carve a rectangular block of cells start <= cell < end.
Example: a body 1.6 m wide, 0.6 m high and 4.0 m long, 0.3 m above the ground, front at -Z: start [-8, 3, -20], end [8, 9, 20] (16 x 6 x 40 voxels). Carve a cabin interior or wheel arches with mode 'carve'.
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": {
"project": "<project>",
"part": "<part>",
"start": "<start>",
"end": "<end>"
},
"name": "draw_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Cell after the last one [x, y, z] (exclusive): end - start is the size. | |
| mode | No | 'add' fills the shape with the color (replacing voxels there, growing the part); 'paint' recolors only the part's existing voxels inside the shape; 'carve' removes the part's voxels inside the shape. | add |
| part | Yes | Part name, for example 'body' or 'wheel_fl'. | |
| color | No | Color name from define_color; required for modes 'add' and 'paint'. | |
| start | Yes | First cell [x, y, z] in voxels (inclusive), model frame. | |
| project | Yes | Project name, for example 'red_pickup'. |