Draw primitives
goxel_draw_primitiveApply up to 500 ordered voxel shape operations to add, remove, or paint boxes, spheres, cylinders, cones, lines, and points with layers, clip planes, and mirroring.
Instructions
Apply a list of up to 500 shape operations: box, sphere (or ellipsoid), cylinder (inner_radius for tires and tubes), cone, line (with a thickness) and points. Each operation has a mode: add (create / overwrite), remove (erase) or paint (recolor existing voxels only), an optional layer (created if missing), clip planes (for slopes and bevels) and mirror copies. Operations are applied in order; everything is validated before the scene is modified.
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": {
"operations": "<operations>"
},
"name": "goxel_draw_primitive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Also return a preview image | |
| operations | Yes | ||
| default_color | No | Color: "#rrggbb", "#rrggbbaa", [r,g,b] / [r,g,b,a] (0-255) or a name (black, white, red, darkred, green, darkgreen, blue, darkblue, lightblue, yellow, orange, amber, purple, pink, brown, gray, grey, darkgray, darkgrey, lightgray, lightgrey, silver, chrome, gold, cyan, magenta, glass, tinted) |