createObject
Add 3D objects to live scenes by specifying geometry types, positions, materials, and dimensions for real-time visualization and manipulation.
Instructions
Add a 3D object to the live scene. Returns the assigned id. Always call getSceneState first to understand what already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Geometry type. Use "line" for laser beams/neon streaks. "tube" for 3D tubes along a path. Platonic solids: dodecahedron, icosahedron, octahedron, tetrahedron. | |
| id | No | Optional custom id. Auto-generated if omitted. | |
| position | No | World position {x,y,z}. Default: origin. | |
| rotation | No | Euler rotation in degrees {x,y,z}. | |
| scale | No | Scale {x,y,z}. Default: 1,1,1. | |
| material | No | ||
| width | No | Box width (default 1) | |
| height | No | Box/cylinder height (default 1) | |
| depth | No | Box depth (default 1) | |
| radius | No | Sphere/cylinder/torus radius (default 0.5) | |
| tubeRadius | No | Tube cross-section radius for torus/torusKnot/tube (default 0.2) | |
| innerRadius | No | Inner radius for ring geometry (default 0.3) | |
| detail | No | Subdivision detail for platonic solids (default 0) | |
| url | No | GLTF model URL (required for type=gltf) | |
| points | No | Array of {x,y,z} points for line geometry or tube path. Required when type="line" or type="tube". | |
| parentId | No | Parent object id for grouping. Child inherits parent transforms. |