What it is. Objects, 3D models, lights and motion that people turn around, zoom into, click and comment on, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. Ask for it in plain words: “Build an Artifacts 3D scene of the warehouse floor: racks, loading docks and a forklift path.” It stays a live item at its own link in the space, and the space’s owner can publish it as a web page anyone can open. See one an agent made: Memphis distribution center, a 3D warehouse you can turn and click.
Agents read this guide with the guide tool, topic scenes, before they first make a 3D scene. It is shown here word for word, so people and their agents work from the same method.
- Guide topic
scenes- Tools
- 5 tools
A 3D scene is objects in space that people turn around, zoom into and click, as in Spline or the three.js editor: a product and its parts, an assembly, a room or a floor plan, a store layout, a server room, a system drawn as things in space, a model of the solar system, an explainer people walk round. People drag to turn it, scroll to zoom, click an object to read its name and notes, double-click to fly to it, jump between saved views, and comment on a point of an object. Editors add, move, turn, size and recolor objects in the page.
A scene's objects are its own (a row each). The tools: create_scene (its settings and first objects),
read_scene (settings and objects with their ids), update_scene (settings, add_objects, copy_objects,
change_objects, delete_objects, add_views, delete_views, title), add_model (store a GLB or glTF for model objects),
render_scene (screenshots from the camera and other sides, with checks), and comment with scene_object.
Space
- Meters. y is up; the ground is y = 0. x runs right, z toward the default camera.
- An object's
positionis its center. A box 1 high stands on the ground aty: 0.5; a sphere of radius 0.3 rests on it aty: 0.3. An object whose center is at y = 0 is half under the ground. rotationis in degrees around x, y and z:[0, 90, 0]turns it a quarter turn round the upright axis, so its front (+z) faces +x.scale: one number (2 = twice as big) or[x, y, z]. Prefer the size fields below; scale is for stretching a model or a group.- The default camera is at
[4, 3, 6]looking at[0, 0.5, 0]: a scene a few meters across, around the middle of the ground, is in view. A bigger scene needs the camera further back (camera.position).
Shapes and their sizes
| shape | size fields (meters) | notes |
|---|---|---|
box | width (x), height (y), depth (z); default 1 each | walls, tables, buildings, screens, shelves |
sphere | radius (0.5) | planets, balls, joints, markers |
cylinder | radius (0.5), height (1), radius_top for a taper | columns, pipes, cans, wheels (turned [90, 0, 0] or [0, 0, 90]) |
cone | radius (0.5), height (1) | roofs, trees, arrows' heads |
torus | radius (0.5), tube (0.15) | rings, tires; stands upright facing +z, [90, 0, 0] lays it flat |
plane | width (x), depth (z) | flat on the ground, facing up: floors, rugs, zones, tabletops |
capsule | radius (0.25), length (0.5) | rounded posts, people as simple figures, pills |
text | height: its line's height (0.3; capital letters are about ¾ of it); text | flat words facing +z; turn it to face where people look from |
model | height: scaled to this height | a GLB/glTF from add_model, centered on its position |
light | — | light: point, spot, directional; intensity (1 = normal), color, target |
group | — | holds others: they move, turn and scale with it |
Look
color(hex),metalness(0 paint/plastic/wood … 1 bare metal),roughness(0 glossy … 1 matte; 0.5 default),opacity(glass ≈ 0.3),emissive+emissive_intensity(a glow: screens, lamps, LEDs, signs),image(a picture on its surface, fromadd_asset: a poster, a screen, a label),wireframe.- Text takes
color,opacityand the glow; a model keeps its own materials; a light'scoloris its light. - A few colors, used for meaning: one neutral for the structure (walls, floor, frame), one or two accents
for what matters, the same color for the same kind of thing. Real materials read as real: metal is
metalness: 1, roughness: 0.3; plasticroughness: 0.4; wood or concreteroughness: 0.8.
Light and ground
lighting:studio(soft and even: products, objects; the default),daylight(sun and sky: outdoors, buildings),night(dim: your lights and glowing objects carry it),none(only your lights).- Light objects add to it: a
pointlight is a bulb (all round, fading with distance); aspotshines a cone at itstarget; adirectionallight is sunlight from its position towardtarget.intensity: 1is a normal light of its kind. ground:shadow(soft shadows under objects, no floor drawn; the default),grid(a floor grid with shadows: plans, layouts),none(things floating in space: the solar system, molecules).background: a hex color. Light gray (the default) for products; dark (#0b1020) for space and night.
Groups
A group is a thing made of parts: a car (body, four wheels), a desk (top, legs), a rack (frame, servers).
Its members give parent: the group's id, or, in the same call, the key you gave the group. A member's
position, rotation and scale are from the group's center, so moving or turning the group moves it all.
Build a thing once as a group, then copy it for more of it: update_scene with
copy_objects: [{ "object": "so_…", "position": [4, 0, 0] }] copies it with everything in it.
The top's bottom (0.73 − 0.02 = 0.71) meets the legs' tops (0.355 + 0.355 = 0.71), and the legs stand on the ground.
Models
For real things primitives can't draw (a chair, a phone, a car), store a GLB with add_model (a URL or
base64) and give its url as model. A model is centered on its position and keeps its own size unless you
give height: give it, since files come in any unit (a 2 m car may arrive 200 units tall). A car 1.5 m high
on the ground: height: 1.5, position: [x, 0.75, z].
Motion, labels, notes
motion:spin(aroundaxis, default y),float(bobs),pulse(grows and shrinks a little), withspeed(1 normal). For what moves in life (a fan, a planet, a beacon), not for decoration.label: trueshows an object's name beside it, always: for the few parts people must find. Every object's name shows when people point at it.notes: what people read when they click it: what it is, its spec, its state, what to look at.nameevery object people would click: "Pump 2", "North wall", not "Box".
Views
camera is where people start: frame the subject so it fills most of the view, from a little above
([6, 4, 8] looking at the subject's middle). views (in create_scene, add_views later) are named places
people jump to: a name, the camera's position and its target. Add them for the parts worth a close look
("The engine", "From the entrance", "Top down").
Order of work
- What and how big: the real sizes of the things, in meters, and where each stands.
- Objects, structure first (floor, walls, frames), then the things, then details; groups for things made of parts. Names and notes as you go.
- Look and light: colors and materials, lighting, ground, background.
- Camera and views.
create_scene, thenrender_scenewithfrom: ["camera", "front", "top"](drawn in one go). A scene that looks right from one side can be wrong from another (something floating, sunk, or behind another): look at each picture, fix what the checks name (out of view, under the ground, too small, models not loaded), render again. Give the person the URL.
Changing objects
read_scene first: it gives each object's id. Then update_scene:
change_objects: [{ "object": "so_…", "position": [1, 0.5, 0], "color": "#ef4444" }]— only what is given changes;nullclears a field;parent: nulltakes it out of its group.add_objects: [...], as increate_scene.copy_objects: [{ "object": "so_…", "position": [x, y, z], "name": "Desk 2" }]— a copy with everything in it, in the same group as the original.delete_objects: ["so_…"]deletes for good, a group with everything in it: only when the person asked.
Comments
comment with scene_object (its id) and point — [x, y, z] on the object in its own coordinates (its
center is [0, 0, 0]: the top of a box 1 high is [0, 0.5, 0]) — pins a comment there; without point it is
on the object as a whole. People see the pin in the scene and the thread in the comments panel.