Stori3D

v0.11.0
io.github.richy7734/stori3d-mcp Checked 4 days ago Published 1 month ago

See 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.

ParameterTypeDescription
code *stringThe 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…

ParameterTypeDescription
detailstringfull includes outlines
kindOnly these kinds
levelstringLevel id or name
limitintegerDefault 100
offsetinteger
propertyobjectOnly elements with this custom property (set to this value)
selectedbooleanOnly what the user has selected

get_element Get element

One element by id, in full (outlines included).

ParameterTypeDescription
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.

ParameterTypeDescription
kind *string
columnsarrayOnly these columns, in this order (titles as the schedule has them)
descendingboolean
filtersarrayRows that pass every filter; over/under compare numbers in the column's units
formatstringDefault json ({ columns, rows })
group_bystringGroup rows by this column, each group followed by a subtotal row
reportstringA report the user saved (File → Schedules → Reports), by name: its columns, filters and totals (kind is then ignored)
sortstringColumn to sort by
totalsarrayNumber 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…

ParameterTypeDescription
kindstring

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…

ParameterTypeDescription
elementstringAn element or room id: list its surfaces and their finishes instead
groupstring
searchstringWords 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".

ParameterTypeDescription
levelstringLevel id or name (default: the active level)
scalenumberDrawing 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".

ParameterTypeDescription
flipbooleanSections: look the other way (south / west)
offsetnumberSections: where to cut, mm (north for section-ew, east for section-ns). Default: through the middle
scalenumberDrawing scale denominator, default 100
sectionstringA section line placed on the plan, by its letter (e.g. "A"); plans show them as section marks
viewstringDefault 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".

ParameterTypeDescription
statusstringDefault 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.

ParameterTypeDescription
format *string
drawingstringdxf/svg: plan (default) or an elevation or section
levelstringdxf/svg plans: level id or name (default the active level)
pathstringWhere to save: a folder or a file path (~ allowed). Default: Downloads
scalenumberdxf/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.

ParameterTypeDescription
heightintegerPixels, default 2000
pathstring
transparentboolean
viewstringcurrent (default), overview, or a saved view's id or name
widthintegerPixels, 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.

ParameterTypeDescription
formatstring
heightintegerPixels, default 1080
panoramabooleanA 360° panorama (JPEG, width × width/2; width default 4096)
pathstring
samplesinteger
viewstringcurrent (default), overview, or a saved view
widthintegerPixels, 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.

ParameterTypeDescription
tour *stringTour id or name
fps
heightinteger
pathstring
widthinteger

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.

ParameterTypeDescription
contextbooleanInclude site context (terrain, neighbouring buildings)
drawingstringFor mode "drawing" (default south)
elementstringElement id for mode "element"
heightintegerPixels, default 768 (plans keep their proportions)
levelstringLevel id or name for mode "plan"
modestringDefault current
offsetnumberFor a section drawing: where to cut, mm
underlaysbooleanShow 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
viewstringSaved view id or name, for mode "view"
widthintegerPixels, 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".

ParameterTypeDescription
id *stringThe model's id
ifcClassstringe.g. IFCWALL, IFCWINDOW
limitintegerDefault 100
offsetinteger

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.

ParameterTypeDescription
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).

ParameterTypeDescription
elementstring
positionobject
presetstring
targetobject

go_to_view Go to a saved view

Move the user's camera to a saved view (id or name from list_views).

ParameterTypeDescription
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.

ParameterTypeDescription
level *stringLevel 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".

ParameterTypeDescription
mode *string
heightnumber
offsetnumber
planestringFor 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.

ParameterTypeDescription
datestring
enabledboolean
timenumber

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…

ParameterTypeDescription
addressstringStreet address or place, e.g. "322 King William St, Adelaide"
eastingnumberSurveyed easting of the origin, metres
epsgintegerMap grid's EPSG code; 0 removes map coordinates
gridNorthnumberWith a survey: degrees grid north is clockwise from true north (default 0)
heightnumberOrigin height above the datum, metres
latnumber
lonnumber
northnumberDegrees clockwise from plan north (default: unchanged, 0 for a new site)
northingnumberSurveyed 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…

ParameterTypeDescription
changes *object
id *string
clampboolean

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).

ParameterTypeDescription
points *array
bulgesarrayPer segment, mm; missing or 0 = straight
closedboolean
heightnumber
levelstringLevel id or name (default: the active level)
thicknessnumber
typestringWall 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.

ParameterTypeDescription
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.

ParameterTypeDescription
outline *array
levelstring
namestring
thicknessnumber

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…

ParameterTypeDescription
eavenumber
levelstring
namestring
outlinearray
overhangnumber
pitchnumber
roofTypestring
roomstringRoom id or name (or give outline)
scopestringbuilding: over the whole building's outside walls
thicknessnumber

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.

ParameterTypeDescription
position *objectPlan point in mm (x east, y north), relative to its level
goingnumber
levelstring
maxRisernumber
namestring
risenumber
rotationnumber
shapestring
turnstring
widthnumber
windersboolean

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²).

ParameterTypeDescription
outline *arrayWall centre lines in order; closed for you
heightnumberWall height mm (default 2700)
levelstring
namestring
propertiesobject
slabbooleanFloor slab (default true)
thicknessnumberWall 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.

ParameterTypeDescription
offset *number
type *string
wall *string
clampboolean
flipboolean
handstringHinges on the left (default) or right, seen from the side it opens to
heightnumber
namestring
sillnumber
widthnumber

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.

ParameterTypeDescription
position *objectPlan point in mm (x east, y north), relative to its level
type *string
clampboolean
depthnumber
heightnumber
levelstring
namestring
rotationnumber
widthnumber

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.

ParameterTypeDescription
position *objectPlan point in mm (x east, y north), relative to its level
clampboolean
depthnumber
heightnumber
levelstring
namestring
rotationnumber
shapestring
widthnumber

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.

ParameterTypeDescription
end *objectPlan point in mm (x east, y north), relative to its level
start *objectPlan point in mm (x east, y north), relative to its level
clampboolean
depthnumber
levelstring
namestring
topnumber
widthnumber

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…

ParameterTypeDescription
end *objectPlan point in mm (x east, y north), relative to its level
start *objectPlan point in mm (x east, y north), relative to its level
clampboolean
headroomnumber
levelstring
namestring
risenumber
thicknessnumber
transitionnumber
widthnumber

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).

ParameterTypeDescription
position *objectPlan point in mm (x east, y north), relative to its level
clampboolean
depthnumber
doorHeightnumber
doorWidthnumber
heightnumber
levelstring
namestring
rotationnumber
wallnumber
widthnumber

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…

ParameterTypeDescription
end *objectPlan point in mm (x east, y north), relative to its level
start *objectPlan point in mm (x east, y north), relative to its level
accessibleinteger
anglenumber
bayLengthnumber
bayWidthnumber
clampboolean
countinteger
levelstring
namestring
startNumberinteger

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.

ParameterTypeDescription
origin *objectPlan point in mm (x east, y north), relative to its level
xSpacings *arraymm between consecutive numbered lines; [] for just line 1
ySpacings *arraymm between consecutive lettered lines; [] for just line A
extensionnumbermm the lines run past the outer lines, default 1500
lettersarray
namestring
numbersarray
rotationnumber

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…

ParameterTypeDescription
ids *arrayThe 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).

ParameterTypeDescription
ids *array
axisstringFlip in place instead of mirroring across start–end
copyboolean
endobjectPlan point in mm (x east, y north), relative to its level
startobjectPlan 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.

ParameterTypeDescription
ids *array
pattern *string
patstring

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…

ParameterTypeDescription
layersobject
resetboolean
room_labelstring | null
tagsobject

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…

ParameterTypeDescription
drawing *string
sheet *string
boxarray
detailboolean
scalenumber20 = 1:20
shapearray
titlestring
uncropboolean

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…

ParameterTypeDescription
kind *string
atobject
endobject
offsetobjectWhere the dimension line sits from its points, mm (x east, y north, height up)
onstringElement id the start (or the text's leader) is pinned to
on_endstring
screenobject
startobject
textstring

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.

ParameterTypeDescription
contours *array
namestring
spacingnumber

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.

ParameterTypeDescription
angle_decimalsnumber
angle_snapnumber
decimalsnumber
fractionnumber
lengthstring
resetboolean

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…

ParameterTypeDescription
ids *array
ifc_class *string | null
typestring

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.

ParameterTypeDescription
a *string
b *string
tolerancenumber

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.

ParameterTypeDescription
id *string
items *array
colourstring
on_topboolean

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.

ParameterTypeDescription
idstring

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.

ParameterTypeDescription
at *objectPaper mm from the top left
rows *array
sheet *string
headerboolean
sizenumber

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.

ParameterTypeDescription
digitsnumber
prefixstring
startnumber
stepnumber

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…

ParameterTypeDescription
name *string
columnsarray
descendingboolean
filtersarray
group_bystring
removeboolean
schedulestring
sortstring
totalsarray

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…

ParameterTypeDescription
finish *stringFinish id from list_finishes
ids *Element or room id(s)
rotationnumberDegrees
scalenumber
surfacestring

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).

ParameterTypeDescription
backgroundboolean
blurnumber
idstringSky id, or "none"; omit to adjust the current sky
intensitynumber
rotationnumber

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.

ParameterTypeDescription
palette *stringPalette id, e.g. "warm_modern", "scandi", "japandi", "industrial", "coastal"
floorsbooleanAlso paint every room's floor (default false)
wallsbooleanAlso 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.

ParameterTypeDescription
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…

ParameterTypeDescription
fovnumberField of view for path tours, degrees (default 60)
loopboolean
namestring
patharrayThe camera path (preferred)
stopsarrayInstead of a path: camera stops
walkobjectLet 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.

ParameterTypeDescription
tour *stringTour id or name
fovnumber
loopboolean
namestring
patharray
stopsarray
walk

delete_tour Delete walkthrough tour

Delete a tour (id or name). Its share link stops working.

ParameterTypeDescription
tour *string

share_tour Share walkthrough tour

Publish a tour as a player-only link (play/pause/speed, optional walking, project details; nothing else) and return it. With `story: true` it is shared as a scroll story instead: a page that opens on the floor plan and, as the visitor scrolls, raises the walls, comes down to where the tour starts and walks it, each room turning from a drawing to its materials as the camera goes in. A tour can have both links. The user is asked to allow it first, and the project must be signed in to the cloud. The link updates on every cloud save. Set the project details with set_project_details first.

ParameterTypeDescription
tour *string
storyboolean

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.

ParameterTypeDescription
path *stringThe file on the user's computer (~ allowed)
asstringDefault auto: images, PDFs and DXF are underlays
pageintegerPDF page (default 1)
scalenumberUnderlay drawn at 1:scale (PDFs)
unitsstringA model's or DXF's drawing units
widthnumberUnderlay'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.

ParameterTypeDescription
namestringe.g. "Ground floor plan"
numberstring
orientationstring
paperstringDefault A3
statusstringe.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.

ParameterTypeDescription
kind *string
sheet *string
aobooleanWith a style: ambient occlusion
edgesbooleanWith a style: edges (always on in hiddenline and sketch)
levelstring
profilesbooleanWith a style: thicker silhouette outlines
scalenumber100 = 1:100
scaledbooleanA view drawn at scale (parallel projection from its direction)
stylestringA view's style: scene (as saved with the view) or a face style (default is Solid)
textstringFor a note
titlestringIts caption (default: what it shows)
viewstring
xnumber
ynumber

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.

ParameterTypeDescription
sheet *string
namestring
numberstring
orientationstring
paperstring
removeDrawingstring
revisestringWhat changed, for the revision table
statusstring

remove_sheet Delete a sheet

Delete a sheet and the drawings placed on it (the model and the notes on drawings stay). Undoable.

ParameterTypeDescription
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.

ParameterTypeDescription
drawnBystring
fieldsarray
layoutstring
practicestring
projectstring
projectNumberstring

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…

ParameterTypeDescription
drawing *string
kind *string
atobject
elementstring
levelstring
offsetnumber
pointsarray
sizenumber
textstring
tipobject

remove_drawing_note Remove an annotation

Remove a note, leader, tag or dimension from a drawing (its id from list_sheets). Undoable.

ParameterTypeDescription
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.

ParameterTypeDescription
storyboolean
tourstring

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.

ParameterTypeDescription
text *string
thread *string
resolveboolean

resolve_comment Resolve a client comment

Mark a comment thread on the review link resolved (or open again with resolved: false). Clients see it.

ParameterTypeDescription
thread *string
resolvedboolean

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.

ParameterTypeDescription
architectstring
clientstring
descriptionstring
locationstring

create_level Add level

An empty level on top of the building (or below it). height = floor to floor, mm.

ParameterTypeDescription
belowboolean
heightnumber
namestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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).

ParameterTypeDescription
name *string
type *string
choicesarray
descriptionstring
kindsarray
unitstring

remove_property Remove custom property

Remove a property definition (values already on elements are kept).

ParameterTypeDescription
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.

ParameterTypeDescription
operations *array
labelstringShort 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).