add_3d_primitive
Add cube, sphere, cylinder, cone, torus, plane, or cuboid meshes to a 3D layer with optional size, position, rotation, scale, and hex color for building low-poly scenes.
Instructions
Add a 3D primitive mesh (cube, cuboid, sphere, cylinder, cone, torus, plane) to the project 3D layer with optional dimensions, position, rotation (degrees), scale, and hex color.
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": {
"kind": "<kind>"
},
"name": "add_3d_primitive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | No | Display name in 3D hierarchy. | |
| color | No | Material hex color e.g. "#f59e0b". | |
| scale | No | ||
| params | No | Optional geometry parameters: s (cube), w/h/d (cuboid/plane), r/rTop/rBot/h/seg (sphere/cylinder/cone), r/tube (torus). | |
| position | No | ||
| rotation | No | Euler XYZ rotation in degrees. |