Stori3D
v0.11.0See and edit the building project open in Stori3D: walls, rooms, openings, finishes, skies.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
connect Connect to Stori3D
Pair with the Stori3D tab showing this 6-digit code (Stori3D → AI agent → Connect). Needed once per session before the other tools work, unless the user had Stori3D remember this AI tool: then it reconnects by itself when they press Connect.
| Parameter | Type | Description |
|---|---|---|
code * | string | The 6-digit code shown in Stori3D |
status Connection status
Whether Stori3D is connected, and to which project.
project_summary Project summary
Start here. The open project at a glance: levels (id, name, elevation and floor-to-floor height in mm, room count and usable room area in m²), element counts, custom property definitions, site location and sun, the active level and the selection. Units: lengths mm, areas m², angles degrees; plan x east, y north.
list_elements List elements
Elements of the model as plain data, filtered and paged. Kinds: level, wall (start/end points, length along the centre line, bulge and radius for curved walls, height, thickness, face area m², opening ids), slab, roof, stair, door, window (width, height, sill, host wall id, size limits), furniture (type, position, rotation, size, limits), room (area m², enclosed, tag), column, beam (start/end, width, depth, top), ramp (start = foot, end = top, rise, gradient), lift (position, shaft size, height, stops), parking (aisle start/end, count, accessible, bay size, angle), grid (origin, rotation, sp…
| Parameter | Type | Description |
|---|---|---|
detail | string | full includes outlines |
kind | Only these kinds | |
level | string | Level id or name |
limit | integer | Default 100 |
offset | integer | |
property | object | Only elements with this custom property (set to this value) |
selected | boolean | Only what the user has selected |
get_element Get element
One element by id, in full (outlines included).
| Parameter | Type | Description |
|---|---|---|
id * | string |
get_selection Get selection
What the user has selected in Stori3D right now — use it when they say "this wall" or "these doors".
get_schedule Get schedule
A schedule table: standard columns for the kind plus a column per custom property. openings = doors and windows (type, width, height, sill, wall); rooms (area, gross area, perimeter, enclosed); walls (length, height, thickness, face area, openings); slabs; stairs (risers, riser height, going); columns; beams; ramps (rise, gradient, transitions, headroom); lifts; parking (bays, accessible bays, bay numbers per row); furniture; product = the Products schedule: each product (manufacturer, product, code) once, with quantity, items, levels, link and notes.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
columns | array | Only these columns, in this order (titles as the schedule has them) |
descending | boolean | |
filters | array | Rows that pass every filter; over/under compare numbers in the column's units |
format | string | Default json ({ columns, rows }) |
group_by | string | Group rows by this column, each group followed by a subtotal row |
report | string | A report the user saved (File → Schedules → Reports), by name: its columns, filters and totals (kind is then ignored) |
sort | string | Column to sort by |
totals | array | Number columns summed in subtotal and total rows |
list_catalogue List catalogue
What can be placed: furniture types for place_furniture (with default sizes in mm, category and style), including about 180 realistic models from the asset library ("ph:…": furniture, Lighting, Decor, Office, plants and trees; ceiling and wall lamps and pictures are hung automatically), the user's My library pieces ("custom:…"), and door and window types for place_opening. The built-in pieces (no prefix) are one modern set: prefer them, and library models of style "modern" or "any", unless the user wants a period look (classic, vintage, industrial, oriental). Filter by category in your own…
| Parameter | Type | Description |
|---|---|---|
kind | string |
list_finishes List finishes
Finishes for paint_surface: id, name, group (Paint & plaster, Brick & block, Concrete & stone, Timber, Tiles, Flooring, Roofing, Metal & glass, Fabric, Landscape), tile (mm per pattern repeat) and source (built-in; ambientCG: photographed PBR materials, "acg:…"; or Poly Haven: photographed textures, "pht:…", e.g. oak and walnut veneers, linen, bouclé, wool, leather, render and microcement in several colours). Filter with group and/or search words (e.g. "oak", "terrazzo", "white paint"). With element instead: that element's surfaces and the finish on each (a room gives walls, floor and cei…
| Parameter | Type | Description |
|---|---|---|
element | string | An element or room id: list its surfaces and their finishes instead |
group | string | |
search | string | Words to match in id, name or group |
list_skies List skies
Skies for set_sky (HDRI environments: clear, cloudy, sunset, overcast, city, countryside, night, studio) with id, name and group, plus the project's current sky and its settings (null: the default lighting).
list_palettes List style palettes
Style palettes for apply_palette: matched sets of finishes (walls, floor, light and dark timber, fabric, bouclé, textiles, lamp shades, an accent, leather, stone, worktop, metal, brass, tapware, joinery, rug, pots) such as Warm modern, Scandi, Japandi, Industrial and Coastal, with the finish id in each slot and which one the project uses.
list_properties List custom properties
The project's custom property definitions (name, type text/number/boolean/choice, unit, choices, which kinds they apply to).
get_plan_svg Get plan (SVG)
The architectural 2D plan of a level as SVG text (walls cut at 1.2 m, doors and swings, dimensions in mm with chains through doors and windows, room names and areas, a north arrow). For a picture you can look at, use capture_view with mode "plan".
| Parameter | Type | Description |
|---|---|---|
level | string | Level id or name (default: the active level) |
scale | number | Drawing scale denominator, default 100 (1:100); US scales too, e.g. 48 for 1/4" = 1'-0" |
get_drawing_svg Get elevation or section (SVG)
An elevation (south/north/east/west: the façade seen from that side), a section (section-ew: an east–west cut looking north; section-ns: a north–south cut looking east), or a section line the user placed on the plan (section: its letter) of the whole building as SVG text: hidden-line drawing, cut walls/slabs/roofs solid, level lines with elevations. Drawing units are metres, y down. For a picture, use capture_view with mode "drawing".
| Parameter | Type | Description |
|---|---|---|
flip | boolean | Sections: look the other way (south / west) |
offset | number | Sections: where to cut, mm (north for section-ew, east for section-ns). Default: through the middle |
scale | number | Drawing scale denominator, default 100 |
section | string | A section line placed on the plan, by its letter (e.g. "A"); plans show them as section marks |
view | string | Default south; ignored with section |
list_views List saved views
The project's saved camera views (id and name). Go to one with go_to_view or picture it with capture_view mode "view".
list_sheets List sheets
The drawing sheets (number, name, paper, orientation, status, revision and revisions, and each drawing on them: id, kind plan|elevation|view|schedule|note, level or view, scale, position in mm from the top left), the title block (project, practice, project number, drawn by, layout, extra fields), the notes and dimensions on drawings, and the choices: paper sizes, statuses, schedules.
list_comments Read client comments
The comments clients left on the project's review link: each thread's number (as on its pin), open or resolved, where it's pinned (plan point mm and height, level and element ids: get_element or capture_view mode "element" to see it) and its messages (who, what, when). For "summarise the client's comments" or "which ones are about the kitchen".
| Parameter | Type | Description |
|---|---|---|
status | string | Default open |
export_file Export a file
Save the project, or a drawing of it, as a file on the user's computer (Downloads unless path says where): ifc (IFC 4, for Revit, Archicad, consultants), glb, gltf, usdz (Apple AR), stl (3D printing), obj (the selection), dxf or svg (a level's plan, or drawing south|north|east|west|section-ew|section-ns; at scale, default 1:100), pdf (every sheet, one a page), xlsx (every schedule, a sheet each) or stori3d (the project file). Returns where it was saved.
| Parameter | Type | Description |
|---|---|---|
format * | string | |
drawing | string | dxf/svg: plan (default) or an elevation or section |
level | string | dxf/svg plans: level id or name (default the active level) |
path | string | Where to save: a folder or a file path (~ allowed). Default: Downloads |
scale | number | dxf/svg: 100 = 1:100 |
export_image Export an image
A presentation image (PNG) as the viewport draws it, at full size, saved on the user's computer: from the current camera, the overview or a saved view. transparent: the building alone on transparency (for brochures). For photo-real images use render_image. Returns where it was saved.
| Parameter | Type | Description |
|---|---|---|
height | integer | Pixels, default 2000 |
path | string | |
transparent | boolean | |
view | string | current (default), overview, or a saved view's id or name |
width | integer | Pixels, default 3000 |
render_image Render a realistic image
A path-traced (photo-real) image: glass, lamps and the sky's light, saved on the user's computer. Takes from under a minute to many minutes: samples 64 is a quick draft, 256 good (default), 1024 best; bigger images take longer. Set the sky (set_sky) and sun (set_sun) and the camera (a saved view) first. panorama: a 360° view all round the camera, as a photo-sphere JPEG (width × width/2, height ignored). The user sees Stori3D busy meanwhile. Returns where it was saved.
| Parameter | Type | Description |
|---|---|---|
format | string | |
height | integer | Pixels, default 1080 |
panorama | boolean | A 360° panorama (JPEG, width × width/2; width default 4096) |
path | string | |
samples | integer | |
view | string | current (default), overview, or a saved view |
width | integer | Pixels, default 1920 |
export_video Export a tour video
A walkthrough tour as an MP4 video (H.264), saved on the user's computer: about as long to make as the tour lasts. 1920 × 1080 at 30 fps by default; 1080 × 1920 for phones and Reels. Returns where it was saved.
| Parameter | Type | Description |
|---|---|---|
tour * | string | Tour id or name |
fps | ||
height | integer | |
path | string | |
width | integer |
list_tours List walkthrough tours
The project's walkthrough tours: camera paths played like a video (stops with plan positions in mm and heights above the ground in mm, travel and pause seconds, loop, where visitors may walk from, and the player-only `link` and scroll `story` link if shared), plus the project details shown with shared tours.
capture_view Look at the model
A picture, so you can check your work. mode: "overview" (the whole building from the south-east, above; site context hidden), "plan" (the 2D plan drawing of a level, north up, with dimensions), "drawing" (an elevation or section, see get_drawing_svg), "element" (one element framed), "view" (a saved view), "current" (exactly what the user sees). Look after significant changes.
| Parameter | Type | Description |
|---|---|---|
context | boolean | Include site context (terrain, neighbouring buildings) |
drawing | string | For mode "drawing" (default south) |
element | string | Element id for mode "element" |
height | integer | Pixels, default 768 (plans keep their proportions) |
level | string | Level id or name for mode "plan" |
mode | string | Default current |
offset | number | For a section drawing: where to cut, mm |
underlays | boolean | Show underlays (plans or drawings the user traced over; hidden by default). Use with mode "current" or "overview" from above to read a plan you are asked to model |
view | string | Saved view id or name, for mode "view" |
width | integer | Pixels, default 1024 |
list_model_parts List a model's parts
The parts of an imported model (list_elements kind model): each part's id, name and, for IFC, its class (IFCWALL, IFCDOOR…), GlobalId and property sets (e.g. Pset_WallCommon FireRating). Filter by IFC class; paged. Part ids work with select and capture_view mode "element".
| Parameter | Type | Description |
|---|---|---|
id * | string | The model's id |
ifcClass | string | e.g. IFCWALL, IFCWINDOW |
limit | integer | Default 100 |
offset | integer |
list_underlays List underlays
The underlays: plans and drawings (images, PDF pages, DXF linework) the user brought in to trace over, with their file, level, extent in plan (mm) and whether they show. To read one, capture_view with underlays: true (mode "current" after set_camera from above, or "overview").
select Select
Select elements in Stori3D so the user sees them highlighted and their properties (e.g. the doors that fail a check). Empty ids clears the selection.
| Parameter | Type | Description |
|---|---|---|
ids * | array |
set_camera Move the camera
Move the user's view: preset "overview", "top" (plan view of the active level) or "element" (frame one element), or an eye position and target (plan mm plus height in mm above ground).
| Parameter | Type | Description |
|---|---|---|
element | string | |
position | object | |
preset | string | |
target | object |
go_to_view Go to a saved view
Move the user's camera to a saved view (id or name from list_views).
| Parameter | Type | Description |
|---|---|---|
view * | string |
set_active_level Switch level
Make a level the active one (the one being edited and drawn in plan; others show ghosted or hidden). New elements go on the active level unless you name one.
| Parameter | Type | Description |
|---|---|---|
level * | string | Level id or name |
set_section Section cut
Cut the model to see inside: "plan" (horizontal, height mm above the active floor), "x" (vertical at plan x = offset mm), "y" (vertical at plan y = offset mm), "plane" (one of the project's named section planes, by name: project_summary lists them as sectionPlanes), or "off".
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
height | number | |
offset | number | |
plane | string | For mode "plane": the section plane's name or id |
set_sun Set the sun
Sun and shadows for the site (needs a site location: set_site): it changes the project's saved sun (not an undo step). Date YYYY-MM-DD and time in hours local to the site (e.g. 9.5 = 09:30). Returns the sun's azimuth (degrees clockwise from north) and altitude. Use with capture_view for shadow studies.
| Parameter | Type | Description |
|---|---|---|
date | string | |
enabled | boolean | |
time | number |
set_site Set the site location
Put the project on the map: an address (looked up; the first match is used, and the matches are returned) or latitude/longitude, and north: degrees true north is turned clockwise from the plan's north (up). The map, terrain and neighbouring buildings load around it, and set_sun can then light it. Map coordinates (georeferencing, for IFC and DXF exports): epsg picks the grid (the reply lists the ones worked out for the place, e.g. 7854 GDA2020 / MGA zone 54; 0 takes them off), height is the origin's height above the datum in metres, and easting/northing (metres) give a survey's numbers for the…
| Parameter | Type | Description |
|---|---|---|
address | string | Street address or place, e.g. "322 King William St, Adelaide" |
easting | number | Surveyed easting of the origin, metres |
epsg | integer | Map grid's EPSG code; 0 removes map coordinates |
gridNorth | number | With a survey: degrees grid north is clockwise from true north (default 0) |
height | number | Origin height above the datum, metres |
lat | number | |
lon | number | |
north | number | Degrees clockwise from plan north (default: unchanged, 0 for a new site) |
northing | number | Surveyed northing of the origin, metres |
update_element Update element
Change an element. Lengths in mm, angles in degrees. By kind: level {name, elevation, height}; wall {length (along its centre line), height, thickness, type (a wall type name or null), bulge (curves it: mm its middle bows out, + to the left going start to end, 0 straight, at most half its straight length), start, end (moves its ends; walls joined there follow)}; slab {thickness}; roof {roofType flat|shed|gable|hip, pitch, overhang, thickness}; stair {width, going, maxRiser, rise, shape straight|L|U, turn left|right, winders (true: an L or U turns on tapered treads instead of a landing), positi…
| Parameter | Type | Description |
|---|---|---|
changes * | object | |
id * | string | |
clamp | boolean |
create_walls Draw walls
Walls along a polyline of plan points (wall centre lines, mm). closed joins the last point back to the first. Corners join automatically. Default height 2700, thickness 200 (mm). bulges curves segments: bulges[i] is how far segment i (point i to the next) bows out at its middle, mm, + to the left going along the polyline, − to the right, 0 straight; at most half the segment's length (a half circle). type: a wall type (its layers set the thickness; the types are in the guide).
| Parameter | Type | Description |
|---|---|---|
points * | array | |
bulges | array | Per segment, mm; missing or 0 = straight |
closed | boolean | |
height | number | |
level | string | Level id or name (default: the active level) |
thickness | number | |
type | string | Wall type name, e.g. "Brick cavity 300" |
split_wall Split a wall
Split a wall in two, offset mm from its start (along its centre line): the wall keeps the first part and its id, a new wall (returned) takes the rest with the doors and windows in it. Not through a door or window, nor within 50 mm of an end. Curved walls split into two arcs of the same circle.
| Parameter | Type | Description |
|---|---|---|
offset * | number | |
wall * | string |
create_slab Create floor slab
A floor slab over any outline (plan points, mm; closed for you), on a level: for a terrace, a landing or a floor that isn't a room. Rooms get theirs from create_room. Default thickness 200 mm.
| Parameter | Type | Description |
|---|---|---|
outline * | array | |
level | string | |
name | string | |
thickness | number |
create_roof Create roof
A roof over a room (its id or name) or an outline (wall centre lines, mm); scope "building" roofs the whole building over its outside walls instead (the one round room if given, else the largest on the level). roofType gable (default), hip, shed or flat; pitch in degrees (default 30); overhang past the wall centre lines (default 400 mm); thickness (default 180 mm). It sits on the tallest wall of the level unless eave (mm above the level floor) says where; walls under it are cut to its slope, and attachTop on a wall (update_element) runs it up to the roof. L, T and U shaped rooms get joined roo…
| Parameter | Type | Description |
|---|---|---|
eave | number | |
level | string | |
name | string | |
outline | array | |
overhang | number | |
pitch | number | |
roofType | string | |
room | string | Room id or name (or give outline) |
scope | string | building: over the whole building's outside walls |
thickness | number |
create_stair Create stair
A stair from a level up to the next: position = the foot of its first riser, at the middle of its width (plan mm); rotation = the way it climbs, degrees counter-clockwise from east (0 east, 90 north). shape straight, L (quarter turn) or U (half turn), turning left or right; winders: true turns on tapered treads instead of a landing. The riser count follows from the rise (default the level's floor-to-floor height) and maxRiser (default 180). It opens a stairwell in the slab above it. Check the footprint with capture_view mode "plan". Defaults: width 1000, going 280 mm.
| Parameter | Type | Description |
|---|---|---|
position * | object | Plan point in mm (x east, y north), relative to its level |
going | number | |
level | string | |
maxRiser | number | |
name | string | |
rise | number | |
rotation | number | |
shape | string | |
turn | string | |
width | number | |
winders | boolean |
create_room Create room
A room in one step: walls around the outline (wall centre lines; edges that an existing wall already covers are skipped, so rooms can share walls), a floor slab, and a room tag holding its name and custom properties. Returns the room (area = usable floor inside the walls, m²).
| Parameter | Type | Description |
|---|---|---|
outline * | array | Wall centre lines in order; closed for you |
height | number | Wall height mm (default 2700) |
level | string | |
name | string | |
properties | object | |
slab | boolean | Floor slab (default true) |
thickness | number | Wall thickness mm (default 200) |
place_opening Place door or window
A door or window in a wall. offset = mm from the wall's start point to the opening's centre (get the wall's start/end/length from list_elements). Windows take a sill height (mm above the floor); doors stand on the floor. flip turns it to face the other side (door swing); hand puts the hinges on the right. Fails with the allowed range if it doesn't fit or overlaps another opening, unless clamp is true. Types: list_catalogue.
| Parameter | Type | Description |
|---|---|---|
offset * | number | |
type * | string | |
wall * | string | |
clamp | boolean | |
flip | boolean | |
hand | string | Hinges on the left (default) or right, seen from the side it opens to |
height | number | |
name | string | |
sill | number | |
width | number |
place_furniture Place furniture
A piece of furniture: type from list_catalogue, position (plan mm, its centre) and rotation in degrees counter-clockwise: 0 faces south (back to the north), 90 faces east, 180 north, 270 west. Against a wall, face away from it. Sizes in mm within its limits (fixed dimensions can't change) unless clamp is true. Leave clearances: ~900 mm walkways, 600 mm in front of storage.
| Parameter | Type | Description |
|---|---|---|
position * | object | Plan point in mm (x east, y north), relative to its level |
type * | string | |
clamp | boolean | |
depth | number | |
height | number | |
level | string | |
name | string | |
rotation | number | |
width | number |
place_column Place column
A structural column standing on its level: position = centre of its foot (plan mm), shape rect (width × depth) or round (width = diameter), default 300 × 300 mm and the level's floor-to-floor height. rotation in degrees counter-clockwise. Cut solid in plans and sections.
| Parameter | Type | Description |
|---|---|---|
position * | object | Plan point in mm (x east, y north), relative to its level |
clamp | boolean | |
depth | number | |
height | number | |
level | string | |
name | string | |
rotation | number | |
shape | string | |
width | number |
place_beam Place beam
A horizontal beam along its centre line from start to end (plan mm), default 400 wide × 600 deep with its top just under the floor above (the level's floor-to-floor height − 200). top = height of its top above the level floor, mm. For a transfer beam carrying apartment walls over a car park, make it deeper (e.g. 600 × 1200) and run it along the walls above. Beams above the plan cut are drawn dashed in plans; cut solid in sections.
| Parameter | Type | Description |
|---|---|---|
end * | object | Plan point in mm (x east, y north), relative to its level |
start * | object | Plan point in mm (x east, y north), relative to its level |
clamp | boolean | |
depth | number | |
level | string | |
name | string | |
top | number | |
width | number |
place_ramp Place ramp
A straight ramp rising from start (its foot, on the level floor) to end, by default rising the level's floor-to-floor height so it arrives at the floor above, which is then opened over it where headroom (default 2200 mm) would be lost. Default width 3600 (one-way car ramp; two-way ≈ 6100), slab 200 thick, with a 2000 mm half-gradient transition at each end (AS/NZS 2890.1 needs them over 1:8; pass transition 0 for none). The returned gradient is the main slope; residential car ramps up to 1:4 if 20 m or shorter, 1:5 if longer (public 1:5 / 1:6); ramps for people 1:14. To go down to a basement…
| Parameter | Type | Description |
|---|---|---|
end * | object | Plan point in mm (x east, y north), relative to its level |
start * | object | Plan point in mm (x east, y north), relative to its level |
clamp | boolean | |
headroom | number | |
level | string | |
name | string | |
rise | number | |
thickness | number | |
transition | number | |
width | number |
place_lift Place lift
A lift shaft centred on position (plan mm), default 2000 × 2200 clear inside, 200 walls, rising from its level through every level above plus a 3600 overrun, with 900 × 2100 landing doors at each floor it reaches (they follow the levels). The floors it passes through are opened inside the shaft. rotation in degrees: at 0 the doors face south (−y).
| Parameter | Type | Description |
|---|---|---|
position * | object | Plan point in mm (x east, y north), relative to its level |
clamp | boolean | |
depth | number | |
doorHeight | number | |
doorWidth | number | |
height | number | |
level | string | |
name | string | |
rotation | number | |
wall | number | |
width | number |
place_parking Lay out parking bays
A row of marked car bays along an aisle line from start to end (plan mm); the bays lie to the LEFT of start → end seen from above (so start (0,0) → end (24000,0) puts them north of y = 0). As many bays as fit unless count is given. Defaults: 2400 × 5400 bays at 90° (AS/NZS 2890.1 class 1A). angle 30–90° for angled parking. accessible = how many bays at the start of the row are accessible ones, each with a 2400 hatched shared area beside it (AS/NZS 2890.6). startNumber numbers the bays. Allow a 5800 aisle (90°) between facing rows. Plans draw the lines and bay numbers; get_schedule ki…
| Parameter | Type | Description |
|---|---|---|
end * | object | Plan point in mm (x east, y north), relative to its level |
start * | object | Plan point in mm (x east, y north), relative to its level |
accessible | integer | |
angle | number | |
bayLength | number | |
bayWidth | number | |
clamp | boolean | |
count | integer | |
level | string | |
name | string | |
startNumber | integer |
create_grid Add structural grid
A structural (setting-out) grid for the whole building: numbered lines 1, 2, 3… running north–south at xSpacings (mm, between consecutive lines, eastwards from origin) and lettered lines A, B, C… (no I or O) running east–west at ySpacings (northwards). origin = where lines 1 and A cross (plan mm). Every floor plan shows it with bubbles; it isn't on a level. Typical car park spans: 8400 (three 2400 bays between columns) or 7800–8100. numbers/letters override the labels. Place columns on its crossings.
| Parameter | Type | Description |
|---|---|---|
origin * | object | Plan point in mm (x east, y north), relative to its level |
xSpacings * | array | mm between consecutive numbered lines; [] for just line 1 |
ySpacings * | array | mm between consecutive lettered lines; [] for just line A |
extension | number | mm the lines run past the outer lines, default 1500 |
letters | array | |
name | string | |
numbers | array | |
rotation | number |
solid_operation Solid tools (booleans)
Boolean on closed objects, by id (elements or other objects): union (merge), subtract (the first minus the others, which are removed), trim (the same, the others kept) intersect (only the overlap), shell (one solid of their outside, everything inside gone; one id of a group merges its overlapping parts) or split (two ids: cut into three where they overlap, returned as pieces). The first id is kept and becomes a plain mesh (it loses parametric data, so walls, slabs, roofs, stairs and columns can only cut, not be cut). A door or window used to cut cuts its rough opening and stays, e.g. to open a…
| Parameter | Type | Description |
|---|---|---|
ids * | array | The first is kept; two or more except shell (one is fine) |
operation * | string |
mirror Mirror or flip elements
Mirror elements (ids) across a vertical plane through a line from start to end (plan mm), or flip them in place through their middle along axis red (east–west), green (north–south) or blue (upside down: shapes and models only). copy keeps the originals and mirrors copies. Walls, slabs, roofs, stairs, ramps and beams are rebuilt mirrored, doors and windows change hand, and a stair turns the other way. One undo step; returns the mirrored ids (the copies with copy).
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
axis | string | Flip in place instead of mirroring across start–end |
copy | boolean | |
end | object | Plan point in mm (x east, y north), relative to its level |
start | object | Plan point in mm (x east, y north), relative to its level |
set_cut_pattern Set cut patterns
How walls, slabs, columns, roofs and stairs (ids) show where plans and sections cut them: solid, grey, outline, or a hatch pattern: hatch, cross, brick, block, concrete, insulation, earth, stone, timber, steel, sand, or the project's own (own:<id>). pat adds patterns from an AutoCAD .pat file's text (each *NAME, description then a line per family: angle, x, y, dx, dy[, dashes], mm on paper; ;%UNITS=INCH for inches) to the project first, so pattern can name one of them. Returns the pattern set and any added.
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
pattern * | string | |
pat | string |
set_drawing_styles Set drawing pens and labels
The pens every plan, elevation, section and sheet is drawn with (SVG, PDF and DXF): per kind of line work in layers (wall, cut, hatched, hatch, opening, below, overhead, slab, elev, dimension, note, room, grid, section) and per tag in tags (by name, e.g. Demolish dashed, Existing grey; a tag's pen wins). Each takes pen (width on paper, mm: 0.13, 0.18, 0.25, 0.35, 0.5, 0.7), line (solid, dashed, dotted, dashdot) and colour (#rrggbb); null clears one. room_label: what room labels in plans say, a template with fields in braces ({Name}, {Area}, {Gross area}, {Perimeter}, {Level} or a custom proper…
| Parameter | Type | Description |
|---|---|---|
layers | object | |
reset | boolean | |
room_label | string | null | |
tags | object |
crop_drawing Crop a drawing or add an enlarged detail
On a sheet (id, number or name), crop a plan, elevation or section (drawing: its id from list_sheets) to box (two opposite corners) or shape (three or more points round the part to keep), given as model points: plan mm, with height (mm above the drawing's level) for elevations and sections, where x or y runs along the façade and height up it. uncrop shows it whole again. With detail, the box or shape is instead drawn again on the same sheet as an enlarged detail (scale, default about a quarter of the drawing's, e.g. 1:20 from 1:100; title, default Detail n), and the drawing shows a callout wi…
| Parameter | Type | Description |
|---|---|---|
drawing * | string | |
sheet * | string | |
box | array | |
detail | boolean | |
scale | number | 20 = 1:20 |
shape | array | |
title | string | |
uncrop | boolean |
add_model_mark Add a dimension or text in the model
In the 3D model, as SketchUp's Dimension and Text tools: kind dimension measures start to end (model points: plan mm and height mm above the ground), its line set off by offset (mm, default 300 up), pinned to the elements on (start) and on_end (end) so it follows them when they move. kind text puts words (text) at a point (at), with a leader from start when given (pinned to on), or pinned to the screen with screen (x and y as shares of the view, 0–1, from the top left). Both show in the viewport, saved with the project; the user picks and deletes them like their own. Returns its id (and a di…
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
at | object | |
end | object | |
offset | object | Where the dimension line sits from its points, mm (x east, y north, height up) |
on | string | Element id the start (or the text's leader) is pinned to |
on_end | string | |
screen | object | |
start | object | |
text | string |
make_terrain Make terrain from contours
A ground surface through contour lines, as SketchUp's Sandbox From Contours: each contour a line of plan points (mm) at its height (mm above the ground), closed for rings. The surface is a grid (spacing mm, default 1000) over their extent and 2 m round it; between contours it's interpolated. It paints, cuts and exports like any object, and the user can sculpt it. Returns its id, size and lowest and highest points.
| Parameter | Type | Description |
|---|---|---|
contours * | array | |
name | string | |
spacing | number |
set_unit_format Set the unit format
How lengths and angles show, as SketchUp's Model Info → Units (saved with the project; metric or imperial itself stays as set): length auto (mm under a metre, else m), mm, cm or m for metric; architectural (feet and inches), feet (decimal) or inches for imperial; decimals (0–3) for decimal lengths; fraction (2–64: 8 is 1/8") for feet and inches; angle_snap (degrees the drawing tools snap angles to, default 15); angle_decimals (0–2). reset goes back to the defaults. Returns the format.
| Parameter | Type | Description |
|---|---|---|
angle_decimals | number | |
angle_snap | number | |
decimals | number | |
fraction | number | |
length | string | |
reset | boolean |
set_ifc_class Classify objects for IFC
What modelled objects (ids: shapes, groups, components, models brought in) are when the project goes to IFC, as SketchUp's Classifier: ifc_class IfcBeam, IfcBuildingElementProxy, IfcChimney, IfcColumn, IfcCovering, IfcCurtainWall, IfcElectricAppliance, IfcFooting, IfcFurniture, IfcGeographicElement, IfcLightFixture, IfcMember, IfcPlate, IfcRailing, IfcRamp, IfcRoof, IfcSanitaryTerminal, IfcShadingDevice, IfcSlab, IfcStair or IfcWall (null clears it), and type its kind in words (e.g. Glass balustrade). A classified group goes out as one element. Walls, doors and the other elements have their cl…
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
ifc_class * | string | null | |
type | string |
find_clashes Find clashes
Clash detection between two sets (a and b; they can be the same): building (walls, floors, roofs, structure), furniture, model:<file name> (a model brought in, e.g. model:structure.ifc), or tag:<tag name>. Clashes are where one's solids run into the other's by more than tolerance (mm, default 10), or one sits wholly inside the other; faces that only touch, and the building's own joins, aren't. Returns each pair (ids and names), how deep (mm) and where (plan mm and height), worst first, up to 200.
| Parameter | Type | Description |
|---|---|---|
a * | string | |
b * | string | |
tolerance | number |
draw_overlay Draw over the view
Draw over the user's 3D view, as an extension's overlay, to point things out: items are { line: [points], closed? }, { box: { min, max } }, { point } or { label, at } (points in plan mm, x east, y north, with height mm), each with an optional colour (CSS; default orange, or colour for all). id names the layer: drawing the same id again replaces it. They draw on top of the model (on_top false hides them behind it). Not saved and not an undo step; clear_overlay takes them away. Returns the id and how many items.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
items * | array | |
colour | string | |
on_top | boolean |
clear_overlay Clear drawing over the view
Takes the overlay layer with this id off the view (draw_overlay), or every layer when id is left out. Returns how many went and the ids left.
| Parameter | Type | Description |
|---|---|---|
id | string |
add_sheet_table Add a table to a sheet
A table drawn on a sheet (id, number or name), as LayOut places a spreadsheet: rows of cells (text; numbers right-aligned), its top left corner at (paper mm from the sheet's top left), the first row as headings unless header is false, size the text height in mm (default 2.5). Cells can hold auto-text: {Sheet number}, {Sheet name}, {Date}, {Project}… Returns its id.
| Parameter | Type | Description |
|---|---|---|
at * | object | Paper mm from the top left |
rows * | array | |
sheet * | string | |
header | boolean | |
size | number |
renumber_sheets Renumber sheets
Number every sheet afresh, in order: prefix (default A-), then a number from start (default 101) going up by step (default 1), padded to digits (default 3): A-101, A-102… Title blocks and drawing references follow. Returns the new numbers.
| Parameter | Type | Description |
|---|---|---|
digits | number | |
prefix | string | |
start | number | |
step | number |
save_report Save a report
Save a report with the project (by name; the same name replaces it), as File → Schedules → Reports: a schedule (openings, rooms, walls, slabs, stairs, columns, beams, ramps, lifts, parking, furniture, products) with only columns, in that order (titles as get_schedule shows them), rows passing filters (op is, not, contains, over, under, filled, empty), sorted, grouped with a subtotal row each (group_by) and totals of number columns. A saved report goes on sheets with place_drawing (kind schedule, view = its name) and keeps up with the model; get_schedule reads it with report. remove deletes…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
columns | array | |
descending | boolean | |
filters | array | |
group_by | string | |
remove | boolean | |
schedule | string | |
sort | string | |
totals | array |
paint_surface Paint surfaces
Put a finish (list_finishes) on surfaces of one or more elements, as one undo step. surface by kind: room — walls (every wall face inside the room), floor (its floor slab), ceiling (the underside of the slab above); wall — left, right (seen walking from its start to its end) or both; slab — top or underside; roof — roofing or gables; stair — flights or rails; column, furniture, door, window — all, or a part name (list_finishes with element lists them). Default: a room's walls, a wall's both sides, a slab's top, otherwise all. A wall face is one surface along its whole length: paint…
| Parameter | Type | Description |
|---|---|---|
finish * | string | Finish id from list_finishes |
ids * | Element or room id(s) | |
rotation | number | Degrees |
scale | number | |
surface | string |
set_sky Set the sky
The project's sky (list_skies): an HDRI environment that lights the model with realistic reflections and ambient light and can show behind it. id "none" goes back to the default lighting. rotation (degrees) turns it, e.g. to put the sunset behind the building; intensity is the lighting strength (1 = as photographed, 0–5); background false lights the model without showing the sky; blur (0–1) softens the background. Settings you leave out keep their current values. Saved with the project; one undo step. Works alongside set_sun (direct sunlight and shadows).
| Parameter | Type | Description |
|---|---|---|
background | boolean | |
blur | number | |
id | string | Sky id, or "none"; omit to adjust the current sky |
intensity | number | |
rotation | number |
apply_palette Apply a style palette
Recolour every built-in piece by role in one step with a style palette (list_palettes): upholstery, timber, stone, metal, lamp shades and so on each take the palette's finish; screens, bulbs, plants, books, people and cars keep theirs, as do asset-library models. walls and floors also paint every room's walls and floor slab. The project keeps the palette, so pieces placed afterwards come in it. One undo step. Repaint single surfaces afterwards with paint_surface.
| Parameter | Type | Description |
|---|---|---|
palette * | string | Palette id, e.g. "warm_modern", "scandi", "japandi", "industrial", "coastal" |
floors | boolean | Also paint every room's floor (default false) |
walls | boolean | Also paint every room's walls (default false) |
save_view Save the current view
Save the user's current camera as a named view (for presenting, image exports and share links). Set it up first with set_camera.
| Parameter | Type | Description |
|---|---|---|
name * | string |
create_tour Create walkthrough tour
A walkthrough tour, the way architects draw it: a `path` of points on the plan (mm, x east, y north) that the camera travels through along a smooth curve, at each point's camera `height` above its level's floor and `speed` (m/s) to the next point, pausing where `pause` is set. The camera looks along the path, or turns to a point's `lookAt` near it. Keep paths inside rooms and through door openings (not through walls): a point a metre outside the front door, one just inside, then the middle of each main room; pause 1–2 s where there is something to see. For an opening shot, start with an aeri…
| Parameter | Type | Description |
|---|---|---|
fov | number | Field of view for path tours, degrees (default 60) |
loop | boolean | |
name | string | |
path | array | The camera path (preferred) |
stops | array | Instead of a path: camera stops |
walk | object | Let visitors walk around from here |
update_tour Update walkthrough tour
Change a tour (id or name): name, loop, fov, walk (null: no walking), path (replaces all points; same format as create_tour) or stops.
| Parameter | Type | Description |
|---|---|---|
tour * | string | Tour id or name |
fov | number | |
loop | boolean | |
name | string | |
path | array | |
stops | array | |
walk |
delete_tour Delete walkthrough tour
Delete a tour (id or name). Its share link stops working.
| Parameter | Type | Description |
|---|---|---|
tour * | string |
import_file Import a file
Bring a file from the user's computer into the project. Models: IFC (from Revit, Archicad; each storey becomes a model on its level), SketchUp as COLLADA .dae or a 3D Warehouse .zip (components kept), glTF/GLB, OBJ, FBX, STL; units are guessed unless given. Underlays to trace over: an image, a PDF page (scale: the drawing's scale, e.g. 100 for 1:100; or width in mm) or a DXF (units; its own if it says). Without a known scale the user is asked to calibrate it. Up to 22 MB.
| Parameter | Type | Description |
|---|---|---|
path * | string | The file on the user's computer (~ allowed) |
as | string | Default auto: images, PDFs and DXF are underlays |
page | integer | PDF page (default 1) |
scale | number | Underlay drawn at 1:scale (PDFs) |
units | string | A model's or DXF's drawing units |
width | number | Underlay's real width, mm |
create_sheet Create a sheet
A drawing sheet with the title block, numbered after the last (A-101, A-102…) unless number is given. Then place_drawing puts plans, elevations, sections, saved views, schedules and notes on it, and export_file format pdf prints them all.
| Parameter | Type | Description |
|---|---|---|
name | string | e.g. "Ground floor plan" |
number | string | |
orientation | string | |
paper | string | Default A3 |
status | string | e.g. Preliminary, For planning, For construction |
place_drawing Place a drawing on a sheet
Put a drawing on a sheet (id, number or name) where there's clear room, at the largest usual scale that fits unless scale is given: kind plan (level), elevation or section (view south|north|east|west|section-ew|section-ns), view (a saved view's picture, in the style saved with it unless style is given; scaled draws it at scale in parallel projection), schedule (view = openings|rooms|walls|slabs|stairs|columns|beams|ramps|lifts|parking|furniture, or a saved report's name) or note (text). x, y: its centre, mm from the sheet's top left.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
sheet * | string | |
ao | boolean | With a style: ambient occlusion |
edges | boolean | With a style: edges (always on in hiddenline and sketch) |
level | string | |
profiles | boolean | With a style: thicker silhouette outlines |
scale | number | 100 = 1:100 |
scaled | boolean | A view drawn at scale (parallel projection from its direction) |
style | string | A view's style: scene (as saved with the view) or a face style (default is Solid) |
text | string | For a note |
title | string | Its caption (default: what it shows) |
view | string | |
x | number | |
y | number |
update_sheet Update a sheet
Change a sheet: name, number, paper, orientation, status; revise with a note to issue the next revision (P1 → P2, A → B) dated today; removeDrawing (a drawing's id) takes a drawing off it.
| Parameter | Type | Description |
|---|---|---|
sheet * | string | |
name | string | |
number | string | |
orientation | string | |
paper | string | |
removeDrawing | string | |
revise | string | What changed, for the revision table |
status | string |
remove_sheet Delete a sheet
Delete a sheet and the drawings placed on it (the model and the notes on drawings stay). Undoable.
| Parameter | Type | Description |
|---|---|---|
sheet * | string |
set_title_block Set the title block
The title block every sheet shares: project, practice, projectNumber, drawnBy, layout (corner, strip down the right side, or band along the bottom) and fields, the practice's own boxes (label and value, e.g. Checked, Client ref). The client and site come from set_project_details.
| Parameter | Type | Description |
|---|---|---|
drawnBy | string | |
fields | array | |
layout | string | |
practice | string | |
project | string | |
projectNumber | string |
add_drawing_note Annotate a drawing
A note, leader, element tag or dimension on a drawing: drawing plan (a level's plan: level) or south|north|east|west|section-ew|section-ns. Positions are plan points in mm with height above the level floor (mm, default 0): at (where text goes), tip (what a leader or tag points at; element: the tagged element's id), points (2 or more, for a dimension string measured along the line through the first two; offset: how far to its side, mm, default 600). size: text height on paper, mm (2.5, 3.5 default, 5, 7). A tag's text is optional: a template whose fields in braces come from the element and its…
| Parameter | Type | Description |
|---|---|---|
drawing * | string | |
kind * | string | |
at | object | |
element | string | |
level | string | |
offset | number | |
points | array | |
size | number | |
text | string | |
tip | object |
remove_drawing_note Remove an annotation
Remove a note, leader, tag or dimension from a drawing (its id from list_sheets). Undoable.
| Parameter | Type | Description |
|---|---|---|
id * | string |
stop_sharing Stop sharing
Take a link down, so it stops working: the project's link (default), or a tour's link or scroll story (tour, story). The user is asked first. Comments already made are kept.
| Parameter | Type | Description |
|---|---|---|
story | boolean | |
tour | string |
reply_comment Answer a client comment
Answer a comment thread on the review link (its id or number from list_comments), as the signed-in user: the client sees it on the link. The user sees your answer and allows it first. resolve: true also marks it resolved.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
thread * | string | |
resolve | boolean |
resolve_comment Resolve a client comment
Mark a comment thread on the review link resolved (or open again with resolved: false). Clients see it.
| Parameter | Type | Description |
|---|---|---|
thread * | string | |
resolved | boolean |
set_project_details Set project details
The details shown with shared tours: architect, client, location, description (plain text). Levels and floor area are added automatically.
| Parameter | Type | Description |
|---|---|---|
architect | string | |
client | string | |
description | string | |
location | string |
create_level Add level
An empty level on top of the building (or below it). height = floor to floor, mm.
| Parameter | Type | Description |
|---|---|---|
below | boolean | |
height | number | |
name | string |
copy_level Copy level above
Copy a level (walls, doors, windows, slabs, furniture, room tags) to a new level on top of the building — the quick way to start the next storey.
| Parameter | Type | Description |
|---|---|---|
level * | string |
remove_elements Delete elements
Delete elements by id (a wall takes its doors and windows with it). Deleting a level, or more than 10 elements, asks the user in Stori3D first — tell them why.
| Parameter | Type | Description |
|---|---|---|
ids * | array |
set_properties Set custom properties
Set custom property values on an element (null clears one). Values are checked against the project's definitions (types, choices). Setting data on an untagged room tags it and returns its new id.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
values * | object |
set_product Set product details
The real product an element is, as an architect specifies it: manufacturer, name (product or model), code (product code or article number), url (its page) and notes. For doors, windows, furniture, models (imported or grouped), columns, beams, stairs and lifts. Fields left out are kept; "" clears one; product null clears them all. They show in get_element (product), the Products schedule (get_schedule kind product), IFC export (Pset_ManufacturerTypeInformation) and share links. Use only details the user gave or a file contained; never invent a manufacturer or code.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
product * |
define_property Define custom property
Add or replace a project property definition: name, type (text, number, boolean, choice), optional unit, choices (for choice), kinds (which element kinds get it; omit for all).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
type * | string | |
choices | array | |
description | string | |
kinds | array | |
unit | string |
remove_property Remove custom property
Remove a property definition (values already on elements are kept).
| Parameter | Type | Description |
|---|---|---|
name * | string |
batch Batch of changes
Several changes as ONE undo step, all or nothing: if any operation fails, none are applied and the error says which. Each operation is { tool, args } using update_element, create_walls, create_room, place_opening, place_furniture, place_column, place_beam, place_ramp, place_lift, place_parking, create_grid, paint_surface, apply_palette, set_sky, save_view, create_level, copy_level, set_properties, set_product, define_property or remove_property. Use it for multi-step edits the user would think of as one change.
| Parameter | Type | Description |
|---|---|---|
operations * | array | |
label | string | Short name for the undo step, e.g. "Furnish bedroom" |
undo Undo
Undo your own last change (only if the latest step in Stori3D's history is an AI change — never the user's).