Pascal 3D Editor
v1.1.6Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_scene Get scene
Returns the full scene graph: flat node dictionary, root node IDs, collections, and explicit installed plugin IDs when present.
validate_design Validate design
Check a design (procedural item recipe) without changing the scene. Write it from pascal://schema/design (JSON Schema, rules and a valid example); a floor design has no mounting. Returns `valid`, coded `diagnostics` (errors block placement, warnings flag floating or unbalanced parts), the parameter `sweep`, and `measurements` at the given parameters: bounds, per-part bounds and instances, true triangle counts, draw groups per slot, datum contact and connected components. A design that does not match the schema gets every schema error at once, each with its `path`, what is `expected` there and…
| Parameter | Type | Description |
|---|---|---|
design * | The design (procedural recipe, version 1 or 2) as an object, or as a JSON string for clients that cannot send recursive objects. Schema: pascal://schema/design. | |
parameters | object | Parameter values to measure at, by parameter id. Defaults otherwise. |
place_design Place design
Create one instance of a design (procedural item recipe, object or JSON string) in the scene. The design must pass validate_design. Its mounting picks the host: floor designs go on a level (or a slab or zone of it) or on a named surface of a placed design; wall-side designs on a straight wall face; ceiling designs under a ceiling. Only creates: refusals carry a code (invalid_design with diagnostics, design_version_not_enabled for version 2 designs until the next release, design_too_large above 24 KiB, invalid_placement, node_exists, host_not_found, wrong_host, unknown_surface, does_not_fit) an…
| Parameter | Type | Description |
|---|---|---|
design * | The design (procedural recipe, version 1 or 2) as an object, or as a JSON string for clients that cannot send recursive objects. Schema: pascal://schema/design. | |
hostId * | string | Floor designs: a level, or a slab or zone on it, or a placed design with surfaceId. Wall-side designs: a straight wall. Ceiling designs: a ceiling. |
position * | array | Metres. Floor: level-local [x, y, z], y above the floor. Wall-side: [along, height, offset] of the mounting reference from the wall start. Ceiling: plan [x, 0, z] of the reference. Surface: [x, 0, z]… |
id | string | Optional new id ("procedural-item_…"). Refused if it exists: this tool only creates. |
name | string | |
parameters | object | Parameter values to measure at, by parameter id. Defaults otherwise. |
rotation | number | string | Yaw. Not for wall-side designs; use side to face the other way. In radians, or text with a unit ("90°"). |
side | string | Wall face for wall-side designs: front is the +normal side, normal (−Δz, Δx) of start→end. The wall's frontSide and backSide say which face is exterior (a facade light goes on that one). |
slots | object | Slot id to "#rrggbb" or a scene:/library: material reference. |
surfaceId | string | Named surface of the host design to rest on (see validate_design measurements.surfaces). |
measure_stair Measure stair
Inspect actual flight risers, walking-line going, slope, arrival, uniformity, headroom against floors, ceilings and stair bodies, and design-target diagnostics without changing measured geometry.
| Parameter | Type | Description |
|---|---|---|
stairId * | string | |
available | object | The space a new layout may take, to propose layouts that fit it. |
fit_stair Fit stair
Explicitly replace stair riser proportions with uniform risers from design targets. Optionally fit going by changing flight runs or arc sweep; preserves landing elevations. Optional straight, L or U layout replaces the flight chain with width-sized turning landings or quarter-turn winders. Winder going is measured along the selected walking line. One atomic edit.
| Parameter | Type | Description |
|---|---|---|
stairId * | string | |
division | string | |
fitRun | boolean | |
innerGap | number | string | In metres, or text with a unit ("6 ft"). Minimum 0 m. |
landingDepth | number | string | In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
layout | string | |
targets | object | |
turn | string | |
turningStrategy | string | |
walkingLineOffset | number | string | In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
width | number | string | In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
find_by_type Find by type
Find every node, item, light or scripted part of one type in the scene, wherever it lives, and return the matches with their count. A type is a node kind (column, door, window, wall, stair, imported-mesh, a plugin's kind…), an item category, light (any item that emits light), or a part type inside scripted objects, windows and doors (a porch's columns, a window's grille). Narrow it to a level, a parent, a zone or an importer's source ids; without a type, every node the other filters match. A word that names nothing (no node kind, nor an item category or part type in this scene) is refused wi…
| Parameter | Type | Description |
|---|---|---|
levelId | string | Only this level. Default: every level. |
limit | integer | How many results to list at most. Default 200; count still says how many match. |
parentId | string | Only the nodes directly under this one: a wall's doors and windows, a roof's segments, a level's walls. |
sourceId | string | Only the nodes an importer recorded under this source id (provenance.refs[].id, or legacy metadata.sourceIds), exactly. Characters outside printable ASCII also match their percent-encoded form. |
sourceIdPrefix | string | Only the nodes with a source id starting with this. |
type | string | What to find, one word: a node kind (wall, slab, imported-mesh, fixture:bench), an item category, light, or a part type (column, beam, panel, railing, trim…). Omit it to find every node the other fi… |
zoneId | string | Only what stands in this zone: on the zone's level, its plan point inside the zone's outline and outside its holes (a wall's midpoint, a polygon's centroid, a door or window where its wall puts it, a… |
list_levels List levels
List every level of every building in floor order: id, name, floorIndex, building (parentId), role (occupied storey, roof-only level or support level), child count, gradeStanding (at-grade, partly-below-grade or below-grade against the ground line and the terrain), isGroundLevel, and which one the person is viewing (isActive); groundLevels names, per building, the level at grade (levelId, whether the building names it, floorElevation, gradeElevation, floorOverGrade, seated). A roof-only level is the roof, not a storey.
get_node Get node
Get the full data of any node by its id: its fields as stored, with what the scene decides for it beside them (a wall's or a ceiling's resolvedHeight, and heightIsExplicit, false when it follows its storey; a wall's resolvedThickness; a door's or window's resolvedOpening, its floor and what it hangs from; the displayName a level or a floor plate is shown by); its ancestorIds, its parent first (a door's wall, then the level, the building, the site); and the scene materials (scene:<id>) its finishes use. A container's node lists its children as stored; any that name no node are listed again in m…
| Parameter | Type | Description |
|---|---|---|
id * | string | The node id. |
get_level_summary Get level summary
Summarise one level so nothing on it goes unseen: its role and counts, then walls (length, heights, doors and windows), zones (name, area, size, floor_choices), slabs, ceilings, items (floor, wall and ceiling), floor openings, stairs, roofs, and anything else by type. Zone polygons: get_zones; a node's full data: get_node.
| Parameter | Type | Description |
|---|---|---|
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
get_walls Get walls
Get the walls of a level: start and end in metres, length, stored and resolved height, thickness, wallType (standard, railing or curtain; standard when absent), type ({ id, label } for a known assembly preset or project wall type, null otherwise), and their doors and windows. wallTypes lists available assembly type ids and labels for add_wall.type and set_wall_type. wallFaceChains gives base-chain provenance for geometric faces a (left of start → end) and b (right): ref (authored face slot), legacy (inline spec), or default (declared fallback ref). These are not final rendered finishes: room…
| Parameter | Type | Description |
|---|---|---|
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
get_zones Get zones
Get the zones (rooms) of a level: name, colour, polygon and holes in metres, area in m² (holes taken out), bounding size, roomType (room when absent, porch, deck or patio), floor.drop (step-down in metres, 0 when absent; an explicit floor.elevation takes precedence), porchFraming (auto, postSize, postSpacing in metres, beamSize, postCount and beamCount of existing generated parts; null when no outdoor/framing intent), and decking (boardSize, gap in metres, direction; resolved defaults for decks or when settings exist). auto follows porchFraming.auto; absent, on for a covered porch, off for de…
| Parameter | Type | Description |
|---|---|---|
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
duplicate_level Duplicate level
Copy a level with everything on it, as the editor does: fresh ids, internal links kept, and units whose rooms are all on that level copied too; plan references, scans and spawn points stay behind. The copy goes above the original (or below it) and the floors past it move up one.
| Parameter | Type | Description |
|---|---|---|
levelId | string | The level to copy, by an id list_levels returned. Default: the floor the person is viewing. |
name | string | Name of the copy. Default: none, so it reads by its floor like a new level (Floor 1, Ground floor…). |
position | string | Where the copy goes: above the original (default) or below it. |
preset | string | What to copy, as in the editor: everything (default); structure (walls, zones, slabs, ceilings, roofs, stairs, doors, windows) without materials; structure with its materials; or structure and furnitu… |
set_ground_level Set ground level
Make a level the building's ground floor: the one standing at grade, its floor on the ground. A building's levels stack on a ground line; the levels with a lower floor index are below grade (basements), the ones at or over it are not, and list_levels reads it as groundLevels (levelId, floorElevation, floorOverGrade, seated) and each level's gradeStanding (at-grade, partly-below-grade, below-grade) and isGroundLevel. This names the level on the building, seats the building so that level's floor datum stands on grade (flat site: world Y 0; sculpted terrain: the mean ground height under its floor…
| Parameter | Type | Description |
|---|---|---|
levelId * | string | The level to stand at grade, by an id list_levels returned. |
verify_scene Verify scene
Optional whole-scene evidence: per-level content, roles (storey, roof-only, support) and the spaces its walls enclose, then every problem found, each with a type: empty levels, walls with no room or door, a space the walls enclose with no room over it (space_no_room) or with several and no wall between them (space_many_rooms), a room the walls do not close (room_not_enclosed) or with no name (room_unnamed), two rooms on the same clear floor (zones_overlap) and floor inside a covered space that no zone or stair claims (floor_unclaimed), both warnings with their area, width and place and quiet u…
| Parameter | Type | Description |
|---|---|---|
room | string | A room's id or name: the answer lists its findings whole, including passages serving it and every finding naming its items, doors or windows. |
type | string | One finding type (for example "usage_passage_narrow"): the answer then lists every original finding of that type, whole, and none of the other blocks of the report. |
set_checkpoint Set a checkpoint
Name this moment of your work (a roof, a floor, a batch of walls) for verify_scene({ since: name }) to compare against, and return the checkpoints kept. verify_scene then lists what was created, changed and deleted since, grouped by level and kind with a view each, and what you made that is gone. "start", the beginning of your work, is always one; a name used again replaces the first; a session keeps at most 8. A checkpoint is kept with your session, not in the project: it changes nothing in the scene, enters no undo, and does not restore anything. Refused: too_many_checkpoints (naming them),…
| Parameter | Type | Description |
|---|---|---|
name * | string | A short name for this moment, e.g. "walls done" or "before roof". |
design_brief Write the design brief
Record the request's design brief before furnishing, read axis by axis with a vision and where the objects come from, and return what it unlocks. It is written once for the whole request (piece by piece when the request invites it), each axis (action, size, form, facade, pieces, openings, style, materials, source, dressing) bounded by the person's own words or open with a design statement. It changes nothing in the scene. Furnishings are placed or made after a brief: place_items, furnish_room, place_in_room (the catalog's) and add_object, place_design (the agent's own), also inside run_batch.…
add_wall Add wall
Add a single wall between two points on a level, straight or, with curveOffset, an arc. type applies a preset or project wall assembly including its thickness (unknown_wall_type for an unknown id). wallType railing builds the Build panel guard: default post-and-rail, 0.9144 m high, thickness from railing.postSize, no assembly or foundation. Its doors are gaps; windows refuse railing_window, skirting refuses railing_wall. railing settings on a standard wall refuse not_a_railing; type on a railing refuses railing_wall. Refused with a code: a level that is not a storey (a declared roof level), an…
| Parameter | Type | Description |
|---|---|---|
end * | array | [x, z] end point in level coordinates (metres). |
start * | array | [x, z] start point in level coordinates (metres). |
curveOffset | number | string | Bends the wall into an arc: the sagitta, from the middle of the straight line start→end to the middle of the arc. Positive bows the middle toward the back face (the −normal side, normal (−Δz, Î… |
height | number | string | Wall height (default: the storey's height; a railing 0.9144 m / 36 in). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
railing | object | Railing settings, only with wallType railing. All lengths in metres; omitted fields follow the selected style. |
thickness | number | string | Wall thickness (default 0.1 m; a wall against the ground on a level below grade, given none, is a foundation wall built of what the building's region says: 8 in CMU with 2x4 pressure-treated furring l… |
type | string | Assembly type id from get_walls.wallTypes: a built-in preset or custom- project wall type. Copies its layers and total thickness in metres, overriding thickness. Unknown ids: unknown_wall_type. |
wallType | string | Wall kind (default standard). railing is an open guard with its own height and post-derived thickness. |
set_wall_type Set wall type
Apply an assembly type to existing standard walls, copying its layers and total thickness as the wall panel does. type null clears the assembly and keeps thickness. All walls change together. Refused with unknown_wall_type for an unknown type id, target_not_found for a missing wall, curtain_wall or railing_wall for walls that take no assembly.
| Parameter | Type | Description |
|---|---|---|
type * | ||
wallIds * | array |
add_fence Add fence
Add a fence along points on a level: one fence per side, a whole run or a lot's boundary (closed) in one call. Privacy (solid panels) by default; picket for a picket fence, slat for vertical slats, rail for open rails, horizontal for cladding boards, guard for a deck's barrier. Fences stand on the level, as the editor's fence tool puts them. Refused with a code: a side shorter than 10 cm (fence_too_short), a roof level (roof_level).
| Parameter | Type | Description |
|---|---|---|
points * | array | [x, z] points in level coordinates (metres), the fence running through them in order. |
baseStyle | string | grounded (default: a kickboard on the ground), floating (the panel held off the ground on its posts) or raised (a bottom rail held above the ground, the posts to the ground: a deck guard). |
closed | boolean | Close the run back to the first point, as a lot's boundary. |
height | number | string | Fence height (default 1.8 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
materialPreset | string | A library material (library:<id>), found with search_materials. |
style | string | slat | rail | privacy | horizontal | guard | picket (default privacy). |
add_corner_window Add corner window
Add a window that wraps the corner where two walls meet, one window on each wall joined at the corner, and return their windowIds and wallIds. Both run to the corner, the glass fused there (post none, a fixed window's default) or meeting at a thin post (post post). Any angle the walls make, a bay's 135° as well as a square or an acute corner. The corner is the point the two walls end at ([x, z], as get_walls gives their ends); width is how far the glass runs along each wall from the corner, the same on both unless widths names a wall. Each side is placed by add_window's rules (height, sillHei…
| Parameter | Type | Description |
|---|---|---|
corner * | array | The point where the two walls meet, [x, z] in the level's plan (m). |
height | number | string | Window height (default 1.5 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
post | string | none: the glass fused at the corner (a fixed window's default); post: the glass meets at a thin post (the default, and the only choice, for the other window types, whose frames stay). |
sillHeight | number | string | Height from the floor to the bottom of the window (default: centred vertically on the lower of the two walls, the same on both sides). In metres, or text with a unit ("6 ft"). Minimum 0 m. |
style | string | The panes' look on each side (rows and columns), the window panel's Style row. |
wallIds | array | The two walls, when more than two end at the corner. |
width | number | string | How far the glass runs along each wall from the corner (default 1.2 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
widths | object | A width for a wall by its id, over width (e.g. { "wall_a": 1.6 }). |
windowType | string | How it opens (default fixed), the window panel's Type row; the fused corner is a fixed window's. |
merge_windows Merge windows
Make two windows that exist one window, as the editor's Merge windows does: nothing is recreated. On two walls that meet at a corner, each window within 0.30 m of that corner, they become one corner window (the add_corner_window result): each is slid to the corner keeping its width, the glass fused (post none), and both take the first window's height, sill and type, so name first the window whose look you want; the corner is refused over 170° or under 10° (walls_not_meeting, corner_angle, window_not_at_corner, height_exceeds_wall). On one wall, two windows with at most 0.30 m between them an…
| Parameter | Type | Description |
|---|---|---|
windowIds * | array | The two windows, the one whose height, sill and type the result keeps named first. |
add_level Add level
Add an empty level to a building as the editor does, above its top storey or below its lowest for a basement, and return its id, floor index and height. Above, it goes under the building's roof level, which moves up one so the roof stays on top; a basement goes one storey under the lowest level, every existing level keeping its place, the ground floor included. On a scene with no building (a new or cleared scene), it starts the scene as the editor does: a site, a building and its ground level. A level that ends up below grade says in its result how a new wall on it is built (wallConstruction):…
| Parameter | Type | Description |
|---|---|---|
buildingId | string | The building. Default: the building of the floor the person is viewing, else the scene's only building. |
height | number | string | Floor-to-floor storey height (default 2.5 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
name | string | Name of the level, e.g. "Basement", "Attic". |
position | string | above (default): over the top storey, under the roof level; below: under the lowest, a basement. |
create_stair Create stair
Create a straight, L or U staircase rising from a level, as the editor's stair tool builds one, and return its id, its footprint and where the top step arrives. An L is a flight, a landing as deep as the stair is wide and a flight turned 90°; a U is a flight, a landing across and a flight back beside the first. It rises to the level above and owns the floor opening it cuts in every floor it passes; when no level stands above, a blank one is made for it. toLevelId null makes a flight to no level (porch steps, a deck, a raised platform): it rises height, cuts nothing and makes no level. Refused…
| Parameter | Type | Description |
|---|---|---|
x * | number | X of the middle of the bottom riser. |
z * | number | Z of the middle of the bottom riser. |
createDestinationSlabOpening | boolean | Cut the floor it arrives through (default true). |
createSourceCeilingOpening | boolean | Cut the ceiling of the floor it leaves (default true). |
destinationSlabId | string | The slab it arrives through. Default: the floor of the level it arrives on. |
height | number | string | Vertical rise. Omit it unless asked for a specific rise: the flight then follows the storey's floor-to-floor height and keeps tracking it. In metres, or text with a unit ("6 ft"). Must be greater than… |
layout | string | straight (default); l: a flight, a landing, a flight turned 90°; u: a flight, a landing across, a flight back beside the first. |
length | number | string | The flights' horizontal run along the climb, landings aside (default: from the stair's design targets, 0.28 m of going per riser, risers of at most 0.18 m). In metres, or text with a unit ("6 ft"). Mu… |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
lowerSteps | integer | An L or U's risers in the first flight; the rest are in the last (default half). |
materialPreset | string | A library material for the flight (library:<id>); an unknown one is refused. |
name | string | Its name (default Staircase N). |
openingCenter | array | The opening centre (x, z). Default: the middle of the stair's footprint. |
openingLength | number | string | The opening along the climb (default the stair's footprint). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
openingOffset | number | string | A margin round the opening on every side (default 0.08 m). In metres, or text with a unit ("6 ft"). Minimum 0 m. |
openingRotation | number | string | The opening's turn (default the stair's). In degrees, or text with a unit ("1.57rad"). |
openingWidth | number | string | The opening across the climb (default the stair's footprint). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
railingMaterial | string | A library material for the railings (library:<id>); an unknown one is refused. |
railingMode | string | Which sides have a railing, looking up the flight (default both). |
railingStyle | string | How the railings are built (default balusters): post-and-rail, cable (contemporary with a black railingMaterial), boards, glass or metal. |
rotation | number | string | The first flight's climb (default 0 = toward +Z; 90 = +X, 180 = −Z, 270 = −X). In degrees, or text with a unit ("1.57rad"). |
sourceCeilingId | string | The ceiling it rises through. Default: the ceiling of the level it leaves. |
steps | integer | Number of risers in all. Omit it to derive ~18 cm risers from the rise; pass it when the run was planned from a step count. |
toLevelId | The level the flight arrives on. Default: the next level above, created when there is none. null: a flight to no level, rising height (default the storey's floor-to-floor height). | |
turn | string | Which way an L or U turns, to the climber's left or right (default left). |
width | number | string | Side-to-side width, across the climb (default 1.0 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
create_roof Create roof
Cap a storey with a roof over its footprint (its walls' outline, else its floor plates, else its rooms), swept in the building's own axes into rectangles, one roof segment each. Without a roofType: a gable for one rectangle, hips for a few wings, flat for a large block. The roof goes on the building's roof level above the top storey (the empty level directly above when it is the only one; made, named Roof, when there is none), and stands on the storey's wall tops, so exploded and solo level views lift it off the plan. Glazed construction supports gable, straight shed and barrel. Barrel depth i…
| Parameter | Type | Description |
|---|---|---|
barrelRise | number | string | Barrel arch rise, at most half each segment span. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
barrelSegments | integer | |
center | array | The rectangle's centre [x, z] in metres (default [0, 0]). |
depth | number | string | The rectangle's depth, along z. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
fasciaHeight | number | string | A fascia band of that height round the roof's eaves and rakes; on a flat roof it reaches the roof's top, a coping over its edge. Absent (and no fasciaMaterialPreset): no band. In metres, or text with… |
fasciaMaterialPreset | string | The band's finish, a library material (a black fascia: library:preset-nearblack); the roof's wall finish when absent. |
glazing | object | |
level | string | Same as levelId. |
levelId | string | The storey to cover, by an id list_levels returned. Default: the top storey with rooms. A level without rooms stands for the highest storey of its building that has some. |
materialPreset | string | The roof finish, a library material. |
name | string | What the user would call it (default "Roof"). |
overhang | number | string | Eave overhang: how far the eaves reach past the walls in plan (a segment stores it along its slope). Read it from the photo: a deep modern overhang is 1–2 m. Default 0.3. In metres, or text with a u… |
pitch | number | string | Slope of the roof planes (default 40°). In degrees, or rise over run ("6:12"). Range 0–85 deg. |
roofSystem | string | |
roofType | string | The shape of every segment. Default: chosen from the footprint. |
wallHeight | number | string | Knee walls under the eaves (default 0: the roof starts at the wall tops). In metres, or text with a unit ("6 ft"). Minimum 0 m. |
wallThickness | number | string | Roof wall thickness. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
width | number | string | With depth: roof a rectangle of your own instead of the footprint (a wing, or walls drawn without rooms), along x. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
move_roofs_to_roof_level Move roofs to the roof level
Move the roofs a storey holds on its own walls to the level the roof rule gives them, and return the roofs moved and the level they went to. It does what a roof's panel does by hand (Move to the roof level): over the top storey, the building's roof level (made, named Roof, when there is none); under an upper storey, that storey. Each roof stands exactly where it stood, its segments, finishes and id kept: only the level holding it changes, so exploded and solo level views show the storey's plan with no roof over it. For a project built before roofs had their own level, when verify_scene reports…
| Parameter | Type | Description |
|---|---|---|
levelId * | string | The storey whose roofs move, by an id list_levels returned. |
place_items Place items
Place one or more catalog items (furniture, fixtures, plants, art, lights) in one call. Each assetId is a known catalog id, available from search_assets results or existing scene item data, never guessed. Positions are level (x, z) metres. An item stands on the floor of the level, or on the host it names (targetNodeId): a wall (art, a sconce: y is the height of its bottom above the floor, required; it goes on the side of the wall the point is on), a ceiling (a pendant, a downlight: it hangs flush under it), or an item standing on the floor (a lamp on a nightstand: it rests on its top; on an ob…
| Parameter | Type | Description |
|---|---|---|
items * | array | The items to place. |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
delete_node Delete node
Delete a node with everything under it, as the editor's Delete does: a wall goes with its doors and windows, a level with everything on it. The floors above a deleted level keep their index.
| Parameter | Type | Description |
|---|---|---|
id * | string | The node id. |
move_node Move node
Move one node as the editor's move tool does, re-seated on its wall, ceiling, roof segment or level, and return where it now sits and whether it clamped. A door, window or wall item slides along its wall (the plan point is projected onto the wall, clamped to stay on it, and refused with opening_overlap where it would hit a sibling, unless force, like holding Alt); a ceiling item moves in plan under its ceiling, keeping its drop; a floor or free node moves in plan on its level, keeping its height; a roof piece (skylight, chimney, vents, solar, dormer) moves in its segment-local plan, the frame…
| Parameter | Type | Description |
|---|---|---|
id * | string | The node id. |
by | array | Plan delta [dx, dz] in metres from where the node sits, same frame as to. |
force | boolean | Allow a wall seat that overlaps a sibling, like holding Alt in the editor. |
rotation | number | Yaw in degrees (free, ceiling and roof nodes). |
to | array | Absolute plan target [x, z] in metres, in the frame the description names for its host. |
y | number | A window's sill height or a wall item's bottom height above the floor, in metres. |
duplicate_node Duplicate node
Duplicate nodes with everything under them, as the editor's Duplicate does, and return each copy's id beside its source's. The copies get fresh ids, hosted children are re-hosted on them (a wall brings its doors, windows and wall items, their wallId pointing at the copy), and an id inside another listed subtree is skipped rather than copied twice. A door, window, wall item, ceiling item or roof piece copied on its own stays on its same host. offset [dx, dz] in plan metres moves every copy from its source's seat (default [0, 0], an exact copy in place, as the editor's duplicate starts); a wall…
| Parameter | Type | Description |
|---|---|---|
ids * | array | The node ids to copy, each with everything under it. |
offset | array | Plan delta [dx, dz] in metres applied to every copy. Default [0, 0]. |
targetLevelId | string | Copy level-parented roots onto this level instead of their own. |
create_room Create room
Create a room on a level from its polygon: a wall per edge, an edge a wall already runs along reusing that wall (rooms share their boundary with their neighbour), and the room zone that names it. The floor plate and the ceiling are derived from the room — never author a slab or a ceiling for it. Declare the room's doors and windows in the same call by polygon edge (wallIndex) and t along it, no wall ids needed; each is placed with add_door's and add_window's rules, and one that cannot be is skipped and listed in skippedOpenings with its code. Returns zoneId, slabId, ceilingId, wallIds in edg…
furnish_room Furnish room
Place the catalog's fixed furniture set for a room type: one set per type, not matched to a style. The bed, sofa, counters or toilet go against the wall facing the door, the rest along a side wall, each set off its wall by its own depth. Name the room by zoneId (its level and outline come with it), or give its polygon and level. The door wall is the edge a door of the room stands on, else doorWallIndex, else edge 0. Nothing lands in a door's clear zone or on another item: a piece that does not fit is nudged, else skipped, and skipped says why. Items stand on the room's level. The set per room…
| Parameter | Type | Description |
|---|---|---|
roomType * | string | What the room is for. |
doorWallIndex | integer | The polygon edge (i → i + 1) to treat as the door wall: for a room with no door yet, or to override the one found. |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
polygon | array | The room's corners as [x, z] in metres, when there is no zoneId. |
zoneId | string | The room: zoneId from create_room, or an id from get_zones. |
paint Paint
Give walls, slabs, ceilings, roofs, columns, fences, doors, windows, stairs, blocks, cabinets, shelves, items and the other built parts a finish in one call, as the editor's Paint does. Give one finish: color (#rrggbb, painted with the nearest of the library's flat colours, said with how near; with exact: true, that colour itself, a matte scene material); material, a library:<id> (find it with search_materials) or scene:<id> ref, or a native material {properties: {color, roughness, metalness}} for an exact finish, kept as a scene material (materialName names a new one) and reused when the scen…
| Parameter | Type | Description |
|---|---|---|
targets * | array | The nodes to paint. |
color | string | A colour, #rrggbb: painted with the nearest library colour, or as given with exact. |
erase | boolean | Back to the surface's default. |
exact | boolean | With color: paint that colour itself, a matte scene material, not the nearest library colour (a brand colour, a colour matched to a photo). |
material | A library:<id> or scene:<id> ref, or a native material kept as a scene material: properties color, roughness, metalness; texture { url (https, or artifact://<sha256> of an image stored with the projec… | |
materialName | string | The name of a new native material; an equal one already in the scene keeps its own. |
role | string | The surface: see the description. |
place_in_room Place an item in a room
Put one floor-standing catalog item in a room where it fits, without working out a position. Wall/ceiling-attached assets need a host: place_items accepts targetNodeId and, for a wall, y for the bottom height. A wall-bound floor piece (fridge, counter, stove, sink, TV stand, dresser, wardrobe, sofa, bed, bedside table, toilet, bath, shower, bookcase, cabinet) stands against a wall, centred in the widest free stretch of that wall (clear of every door and every other item), its front toward the room; it is never put in the middle, and when no wall has room the answer says how wide the widest fre…
| Parameter | Type | Description |
|---|---|---|
assetId * | string | A known catalog id; search_assets can find it. |
align | string | Desired wall alignment, clamped into a valid free run. Defaults to the widest run’s center. |
allowDuplicate | boolean | Place it even though the room already has this item. Off by default (a second toilet or stove is a mistake); chairs are always allowed. |
clearanceAreas | array | Existing clearance rectangles, in world metres, to keep free before placing. |
edge | integer | Stand it against this polygon edge (i → i + 1) instead of the best one. |
facing | string | In by default. Out adds 180 degrees after any explicit rotationDeg. |
inset | number | string | Normal gap in metres between the rotated footprint and the wall centerline; defaults to 0.1 m. In metres, or text with a unit ("6 ft"). |
level | string | Same as levelId. |
levelId | string | The level, by an id list_levels returned; an id made up from a name ("level_1", "level_ground") does not exist. Default: the floor the person is viewing, else the lowest floor. |
offset | number | string | Signed metres along the wall from the desired alignment; defaults to zero. In metres, or text with a unit ("6 ft"). |
polygon | array | The room's corners as [x, z] in metres, when there is no zoneId. |
rotationDeg | number | string | World yaw in degrees, overriding the automatic inward, group or table-facing yaw. In degrees, or text with a unit ("1.57rad"). |
zoneId | string | The room: zoneId from create_room, or an id from get_zones. |
get_site Get site
Read the site a building stands on and return, in its level coordinates, its lot, buildable area, street side, north, ground and the footprint's yards. It gives the lot and its area, with the footprint a house usually covers on it (30 to 45%); the buildable area inside the setbacks with its centre, its area, each edge's frontage and depth, and its front edge (behind the street; while no street is recorded, behind the edge facing north, which the setbacks take as the front); the street side with the lot's frontage and depth on it; north; the ground (sloped with its fall, read flat, or not read)…
| Parameter | Type | Description |
|---|---|---|
building | string | The building, by its id (list_levels' parentId). Default: the building of the floor the person is viewing, else the scene's only building. |
site | string | The site, by its id (get_site's siteId), when the scene has several: a lot no building stands on yet reads in site coordinates. Default: the building's site. |
place_building Place building
Stand a building on its site before or after its walls go up. It moves only the building node, so walls, levels and roofs keep their coordinates and move with it. The footprint (outline, the plan you are about to draw, in the coordinates you will draw it; else the walls standing) lands centred in the buildable area, or at the yards a site plan or the person gives. A building with walls keeps its rotation unless rotationDeg is given (get_site's squareRotationDeg squares it to the street); one with none yet is turned square to the street. Fences, paths and plants on its levels move with it.
| Parameter | Type | Description |
|---|---|---|
building | string | The building, by its id (list_levels' parentId). Default: the building of the floor the person is viewing, else the scene's only building. |
outline | array | The footprint's corners in order, as [x, z] in metres, in the level coordinates the walls are (or will be) drawn in. Default: the walls standing. |
rotationDeg | number | string | The building's rotation about the vertical. Default: the rotation it has, or square to the street while it has no walls. In degrees, or text with a unit ("1.57rad"). |
yards | object | Where the house stands instead of centred: at most one of front and rear, and one of left and right, from a site plan or the person. An axis not given stays centred in the buildable area. Needs the si… |
search_assets Search assets
Search the item library (furniture, fixtures, lights, plants, outdoor) by keyword, with one or several queries in a call. The catalog is a limited set that varies by server: what a search returns is what exists. Results provide valid asset ids and placement facts when these are not already known. A query matches the items whose name, id, category or tags hold every one of its words. Returns one group per query, best matches first (the name exactly, then words of the name, words starting it, the category, a tag), at most limit items (24 unless set, up to 60); total counts every match and trunca…
| Parameter | Type | Description |
|---|---|---|
queries * | array | One or more searches to run in a single call. |
limit | integer | Most items per query, best first; 24 unless set. Narrowing a query beats raising this. |
view_assets View catalog items
Pictures of catalog items by id, each with its size and the names of its paintable surfaces (paint takes one as role).
| Parameter | Type | Description |
|---|---|---|
ids * | array | One to six catalog item ids, as search_assets or furnish_room returned them. |
search_materials Search materials
Search or browse the material library (the finishes paint gives), several queries in one call: find a library material's ref here rather than guessing it. The library is Pascal's materials and, in the editor, the ones it holds besides (the community's, yours, your workspace's). A query's words match the words of a material's id, name and kind, or a piece of its id (plank48, cco), building words as the library writes them (timber is wood, weatherboard is siding, render is stucco), colour words by its shade (dark, light, white, grey) and surface words (roof, wall, floor, ceiling) by what it suit…
| Parameter | Type | Description |
|---|---|---|
queries * | array | One or more searches or browses to run in one call. |
cut_floor_opening Cut floor or ceiling opening
Create a persistent opening on a room or level from a polygon or rectangle. A floor cut also opens the automatic ceiling directly below; a ceiling cut can also open the floor above. Use cutsAdjacent:false for a one-surface cut. A mezzanine room cuts only its own plate. levelIds repeats the opening as a shaft on several levels.
| Parameter | Type | Description |
|---|---|---|
cutsAdjacent | boolean | |
cutsPrimary | boolean | |
drawnOn | string | |
levelId | string | |
levelIds | array | |
polygon | array | |
rect | object | |
zoneId | string |
remove_floor_opening Remove floor opening
Remove an authored floor or ceiling opening and restore the derived surfaces it cut.
| Parameter | Type | Description |
|---|---|---|
id * | string |
set_floor_foundation Set floor and foundation
Supply slabId or slabIds; grouped plates receive the same floor-top displacement, while edge slots apply only to the first plate. A ground-contact floor has two inputs: thickness (slab, min 0.01 m, grows upward from the foundation) and foundationHeight (0 = on the ground, no foundation; > 0 = raised on a solid foundation; foundation.type "solid" alone raises it 0.3 m, "none" puts it on the ground). The floor top is derived and never floats: grade + foundationHeight + thickness; everything the floor carries (walls, openings, items, rooms, storeys above) moves with the top. Legacy floorHeight (a…
| Parameter | Type | Description |
|---|---|---|
patch * | object | |
slabId | string | |
slabIds | array |
set_room_floor_construction Set room floor construction
Edit the single floor volume associated with a room, with the same patch as set_floor_foundation. On a ground-contact floor: thickness (slab on the foundation, grows upward, min 0.01 m) and foundationHeight (0 = on the ground; > 0 = raised on a solid foundation); the top is derived as grade + foundationHeight + thickness and carries everything on the floor. A drawn slab takes thickness, finishes and a numeric floorHeight (its top) only. Supply slabId when the room spans multiple construction domains; an absorbed legacy slab is edited through its derived base plate.
| Parameter | Type | Description |
|---|---|---|
patch * | object | |
zoneId * | string | |
slabId | string |
rebase_floor_reference Rebase floor reference
Change or clear one or more footprint reference datums in one atomic edit, compensating supported storey offsets so existing world geometry stays in place. Supply slabIds together for a shared storey.
| Parameter | Type | Description |
|---|---|---|
referenceFloorElevation * | ||
slabId | string | |
slabIds | array |
create_mezzanine Create mezzanine
Add an open-below room inside a host reference polygon, with a separate thin plate and railings on open edges. Minimum area 1 m²; elevation defaults to half the storey snapped to 0.05 m, thickness to 0.2 m. Elevation must exceed thickness and stay at least 0.3 m below the resolved footprint plane; overlapping mezzanines are refused. The host floor and walls stay intact.
| Parameter | Type | Description |
|---|---|---|
hostZoneId * | string | |
polygon * | array | |
elevation | number | string | In metres, or text with a unit ("6 ft"). |
thickness | number | string | In metres, or text with a unit ("6 ft"). Minimum 0.02 m. |
move_zone Move or rotate room
Move room intent and contents. Shared walls and openings stay with neighbours; the room takes plain copies. Rotation is radians about Y, before translation, about the room centroid unless a pivot is supplied. Crossings split walls and overlaps re-derive rooms. Force can reposition obstructing openings when they fit; otherwise the edit is refused.
| Parameter | Type | Description |
|---|---|---|
zoneId * | string | |
force | boolean | |
rotate | object | |
translate | array |
duplicate_zone Duplicate room
Copy room intent and contents with fresh IDs; shared walls are copied without openings. Rotation is radians about Y before translation. Collinear destination walls are merged, preserving their IDs and hosted children. Crossings split walls and rooms re-derive; overlap is allowed. Force can reposition obstructing openings only when they fit.
| Parameter | Type | Description |
|---|---|---|
translate * | array | |
zoneId * | string | |
force | boolean | |
rotate | object |
rotate_zone Rotate room a quarter turn
Rotate a room by quarterTurns 1 or -1 about its centroid, then align its first reference vertex to gridStep (default 0.5 m). Crossings split walls and collinear overlaps merge. Force can reposition obstructing openings only when they fit.
| Parameter | Type | Description |
|---|---|---|
quarterTurns * | integer | 1 or -1. |
zoneId * | string | |
force | boolean | |
gridStep | number | string | In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
lock_outside_faces Keep outside dimensions
Keep the building's outer size: put exterior wall faces on their fixed reference lines, moving wall bodies inward so walls thicken inward and later thickness edits preserve outer dimensions. Supply either levelId or zoneIds.
| Parameter | Type | Description |
|---|---|---|
levelId | string | |
zoneIds | array |
set_zone_intent Set room intent
Update a room's intent in one patch (name, floor, ceiling, steps, walls, daylight, outdoor type, porch framing, decking) and return how many changes it made. It sets the room name, floor finish/elevation/regions and floor.footprint ("new" mints a unique floor key tied to this creator room, an existing key joins that floor on this level, null returns to the shared floor). Touching rooms with the same key share a base plate; disconnected pieces share construction settings. Conversion preserves world geometry in one edit and refuses when infeasible. get_zones exposes floor_choices. A keyed floor…
| Parameter | Type | Description |
|---|---|---|
patch * | object | |
zoneId * | string |
divide_zone Divide room
Divide a room with an open path (endpoints snap to its boundary; the seed side keeps its id) or a closed island (outer room keeps its id). The two rooms are parted by a separator (the editor's Separator: a room boundary with no wall), not a wall. Supply path or the legacy two-point cut. Islands need 0.25 m² and 5 cm wall clearance.
| Parameter | Type | Description |
|---|---|---|
zoneId * | string | |
closed | boolean | |
cut | array | |
endBoundaryId | string | |
path | array | |
startBoundaryId | string |
merge_zones Merge rooms
Merge two rooms by removing the separators they share (the editor's Separator: a room boundary with no wall). Walls are preserved; wall-only boundaries return a conflict.
| Parameter | Type | Description |
|---|---|---|
zoneIds * | array |
delete_zone Delete room
Delete a room. A room Divide made, which shares a separator (the editor's Separator: a room boundary with no wall) with a room on its outline, merges back into that room: the separators go, walls and items stay (mode "merge"). A room whose every boundary is a wall shared with other rooms is refused with a "shared-walls" conflict and nothing changes (mode "blocked"); delete one of its walls instead. Otherwise the room goes with its unshared walls, separators and their openings (mode "delete"), and contents chooses whether its items are kept or deleted. Returns the disposition payload.
| Parameter | Type | Description |
|---|---|---|
contents * | string | |
zoneId * | string |
create_unit Create unit
A unit is one dwelling, suite or tenancy of a building that holds several (an apartment, a condo, a hotel room, a shop): a named group of rooms (zones) under the building. Its members may span levels (a duplex). A zone belongs to at most one unit; a zone in no unit is common area (a corridor, a lobby, the stairs). A single-family house has no units. Create one in a building, named as a person would (Apartment 2B, Suite 301, Shop 1), with the rooms it holds; add or change them later with set_unit_members.
| Parameter | Type | Description |
|---|---|---|
name * | string | The unit as a person names it: Apartment 2B, Suite 301, Shop 1. |
buildingId | string | The building. Default: the building of the floor the person is viewing, else the scene's only building. |
color | string | #rrggbb tint of the unit in the plan (default Pascal’s). |
kind | string | What the unit is: apartment (a dwelling: a flat, a condo, one side of a duplex), hotel-room (a suite or guest room), commercial (a shop, an office, a lot let on its own), common (shared space grouped… |
memberZoneIds | array | The rooms the unit holds, by zone ids from get_zones or create_room, on any level of the building. A zone already in another unit is refused (zone_in_other_unit, naming that unit) unless move is true. |
move | boolean | true: a zone already in another unit leaves that unit for this one. |
set_unit_members Set unit members
A unit is one dwelling, suite or tenancy of a building that holds several (an apartment, a condo, a hotel room, a shop): a named group of rooms (zones) under the building. Its members may span levels (a duplex). A zone belongs to at most one unit; a zone in no unit is common area (a corridor, a lobby, the stairs). A single-family house has no units. Replace the rooms a unit holds with this list: a zone left out leaves the unit and becomes common area, an empty list empties it. Every zone must be on a level of the unit's building.
| Parameter | Type | Description |
|---|---|---|
memberZoneIds * | array | The rooms the unit holds from now on, by zone ids from get_zones or create_room, on any level of the building. A zone already in another unit is refused (zone_in_other_unit, naming that unit) unless m… |
unitId * | string | The unit, by an id from create_unit or list_units. |
move | boolean | true: a zone already in another unit leaves that unit for this one. |
list_units List units
A unit is one dwelling, suite or tenancy of a building that holds several (an apartment, a condo, a hotel room, a shop): a named group of rooms (zones) under the building. Its members may span levels (a duplex). A zone belongs to at most one unit; a zone in no unit is common area (a corridor, a lobby, the stairs). A single-family house has no units. List the units of a building, or of every building: id, name, kind, colour, member zone ids and a report (member count, the levels it spans, gross area, each member with its name, level and area).
| Parameter | Type | Description |
|---|---|---|
buildingId | string | The building. Default: the building of the floor the person is viewing, else the scene's only building. |
run_batch Run a batch of scene tools
Optionally run several scene tools in one call: in order, each on the scene the calls before it left, applied as one undo step, with a report per call. Supports repeated or known-in-advance work; individual calls remain available. A call cannot use an id another call of the same batch creates; created ids are available in the report for subsequent calls. onRefusal stop (default): a refused call stops the batch and nothing is applied; skip: the others are applied and each refusal is reported. This policy includes unsupported tools, invalid inputs and design-brief refusals, as well as runtime re…
| Parameter | Type | Description |
|---|---|---|
calls * | array | |
onRefusal | string | stop (default): nothing is applied if a call is refused. skip: apply the rest. |
list_collections List collections
List the scene's collections with their elements (id, name, type, level), and the templates a collection can start from.
| Parameter | Type | Description |
|---|---|---|
collectionId | string | Only this collection. |
edit_collection Edit collection
Create, rename, recolour or delete a collection, or add and remove its elements. A collection is a named set of any scene elements (lights, windows, doors, columns, objects built with add_object…), listed in the editor's Collections; being in one changes nothing about the elements. Without collectionId the call works on the scene's collection with that template, or else that name, and creates it when there is none.
| Parameter | Type | Description |
|---|---|---|
add | array | Ids of the elements to add. |
collectionId | string | The collection to change. |
color | string | Colour, e.g. #f5b83d. |
delete | boolean | Delete the collection; its elements stay in the scene. |
name | string | Name of the collection, or its new name. |
remove | array | Ids of the elements to take out. |
template | string | Start from a template, which gives the name and colour unless you pass them. |
add_column Add column
Add a structural or decorative column at (x, z), or rebuild one by nodeId. role post makes the Build panel framing post: plain square pressure-treated wood, default 6x6 with no base, reaching the lowest beam above its support or the ceiling plane unless height is given. postSize and postBase use the tile choices. Refused with not_a_post when post choices are given without role post (or an existing post). Supports native fields or optional code using the same module and conventions as add_object, with floor mount and its bottom centre at the support point. Params named height, width and depth d…
| Parameter | Type | Description |
|---|---|---|
category | string | What this design is, in one or two words. |
code | string | A module (three.js, or bpy with language) when the native fields cannot express the column. Same module and conventions as add_object; mount floor. Declare height, width and depth params for editable… |
crossSection | string | Plan shape: 'round' (default), 'square' (equal width/depth), 'rectangular' (independent width/depth), 'octagonal', 'sixteen-sided'. |
depth | number | string | Depth when crossSection is "square" / "rectangular" (default: 0.44). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
description | string | A short description of this design, at most 200 characters. |
height | number | string | Column height (default: 2.5 m; a new post reaches the beam above or ceiling plane). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
language | string | The code's language: 'three' (default) for a three.js module, 'bpy' for a Blender module (see add_object). On an edit it defaults to the language the object was built in. |
level | string | Level id from list_levels; omitted uses the viewed or lowest level. |
name | string | What the user would call this design. |
nodeId | string | Rebuild this column with code, params or native size fields; get_source provides current code when needed. |
params | object | Values for the params the module declares; on an edit, each one you leave out keeps its current value (clamped to the param's range) and a param new to the code starts at its default. |
postBase | string | Post base: none (default for a new post), a steel post base, or a concrete pier. Updates base geometry and finish together. |
postSize | string | Nominal post size; actual square sides 0.0889, 0.1397, 0.18415 m. Default for a new post: 6x6. Overrides native width, depth and radius when supplied. |
radius | number | string | Radius when crossSection is "round" (default: 0.22). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
role | string | post: a framing post; ornament: a decorative column. Omitted keeps existing column behavior. |
rotation | number | string | Y-axis rotation (default: 0). In degrees, or text with a unit ("1.57rad"). |
style | string | Visual style: 'plain' (default smooth pillar), 'faceted' (sharp prism faces), 'fluted' (vertical channels — classical), 'lathe-turned' (turned bands — porch / interior), 'dravidian-carved' (heavy… |
tags | array | Up to five short lowercase search tags, at most 32 characters each. |
width | number | string | Width when crossSection is "square" / "rectangular" (default: 0.44). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
x | number | X position of the column center (meters) |
y | number | Support point height above the level, in metres (default 0). |
z | number | Z position of the column center (meters) |
add_object Build object
Author parametric Three.js furniture, decor and custom objects of any shape, dimensions or style, whether or not the catalog holds something similar (the catalog is a limited set that varies by server). Examples include a low oak table, a slatted bench, a paper lantern, built-ins, custom columns and capitals, mouldings and trim, panels, exposed beams, ceiling bodies, canopies, a porch and railings. Pascal runs the module in a sandbox, stores the result and places it as one object the user can move, paint, and ask you to edit again. Module shape (import THREE from the three package as usual; t…
| Parameter | Type | Description |
|---|---|---|
category | string | What it is, one word or two ("table", "bench", "porch", "lantern", "trim"). |
code | string | The module (see the tool description). Required to create, unless piece is given; omit to rebuild an object with new params. |
description | string | A short description of this design, at most 200 characters. |
exact | boolean | Keep the module's slot colours exactly as written, with their roughness and metalness, instead of the library finishes they match (glass stays glass, a glowing slot its own material). On an edit, the… |
language | string | The code's language: 'three' (default) for a three.js module, 'bpy' for a Blender module (see add_object). On an edit it defaults to the language the object was built in. |
name | string | What the user would call it ("Low oak table"). |
nodeId | string | Edit this existing authored object instead of creating one. |
params | object | Values for the params the module declares; on an edit, each one you leave out keeps its current value (clamped to the param's range) and a param new to the code starts at its default. |
parentId | string | Host for a new object: a level (default: the floor in view), a wall (wall / wall-side mounts), a ceiling, or an item it rests on. |
piece | object | Instead of code, to create: the object in words, written by Pascal's model in the background (see the tool description). |
position | array | Placement of the mount origin in the host frame, metres. Floor: [x, y, z] locates the bottom-centre (y = 0 on the level floor). Ceiling: [x, y, z] locates the top-centre (y = 0 on the drawn ceiling at… |
reason | string | Design intent: why this authored shape, size or style suits the request ("low oak table for the Japandi seating area"). Required to create; an edit keeps it unless given. No catalog-exhaustion proof i… |
rotation | number | string | Y-axis rotation in the host frame. New wall-side back mounts default to 180° so +Z faces away from the wall; other new objects default to 0°. An edit keeps its saved rotation unless given. In degree… |
side | string | Which wall face a wall-side object sits on. |
tags | array | Up to five short lowercase search tags, at most 32 characters each. |
author_scene Author scene
Turn a whole design you wrote as free three.js into an editable Pascal scene: the payload holds the whole design. You read your own module however you like (its source, running it and reading the objects, both) and hand over a conversion payload: levels, walls (straight, curved or glass) with their openings, rooms (each naming its unit in a building of several dwellings or tenancies: a condo, an apartment building, a hotel; a room naming none is common area), slabs, voids, columns, railings, stairs, every piece of furniture as an authored object with its own module, and lights. Pascal does the…
get_source Read object script
Read the code module a scripted node runs and return it with its language (three.js or Blender bpy) and its params at their current values. It reads the module of an object, or of a window, door or column built from code; a room's id reads its floor script, the module that builds its floor finish; a slab's id reads its surface script, the module that builds its top's finish; a wall's id with face reads that face's script (face may be left out when only one face has one). Optional source evidence when the current module is needed. An edited module can be passed back with the same nodeId: to add…
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | An object, window, door or column built from code, a room with a floor script, a slab with a surface script, or a wall with a face script. |
face | string | A wall's face whose script to read; needed when both faces have one. |
measure Measure
Measure the distance (in meters) between two nodes, or the net area of a polygon node when fromId === toId. Distance is between world-space reference points, returned as fromPoint/toPoint: a positioned node's origin in its host's frame (an item's base, a door's or window's centre in its wall), a wall's or fence's midpoint at its base, a slab's, ceiling's or zone's polygon centroid on its plane, a block's or imported mesh's vertex-bounds centre, a level's plan centre on its base plane, and another container's descendants' centre. `approximate` lists nodes whose renderer derives the pose from da…
| Parameter | Type | Description |
|---|---|---|
fromId * | string | |
toId * | string |
view_scene Look at the scene
Look at the building in 3D from a viewpoint you pick and get the picture back: the finished house, every storey and the roof by default, or an explicit Solo/Exploded level presentation, whatever view mode the person has on. Use it to compare what you built with a reference and say what differs before you fix it: the facade from the photo's own camera (camera: its position, aim, field of view and aspect), rendered at the photo's aspect to lay beside it; or from the photo's side at street height (from 'street', 'street-left', …, eyeHeight 1.7), in its light (lighting); one face square on (proj…
| Parameter | Type | Description |
|---|---|---|
camera | A photo's camera (position, target, fov, aspect): the render takes its eye, aim and field of view at the photo's aspect. Or 'current': the person's own view, as their editor shows it now (the MCP has… | |
elevation | number | string | Degrees above the horizon the eye looks down from: 35 to 60 for an aerial view. Default 12. In degrees, or text with a unit ("1.57rad"). Range -10–89 deg. |
eyeHeight | number | string | Metres above the ground for a street view (1.7), instead of elevation. In metres, or text with a unit ("6 ft"). Minimum 0 m. |
fov | number | string | Vertical field of view in degrees for a perspective view. Default 45. In degrees, or text with a unit ("1.57rad"). Range 10–100 deg. |
from | string | The side the eye stands on: a compass side (north is the plan's top edge, z grows south, x east), above, or a side as a front photo names it, standing in the street facing the house ('street-left' is… |
interior | object | Look inside, with one of: levelId (a floor): the other floors and its roofs and ceilings are left out of the picture, everything on it (walls, openings, furniture) cut at 0.65 of the storey height. De… |
lighting | string | The light the picture is rendered in: the scene's own (current, the default), or day, overcast, sunset, dusk (twilight, the lights on) or night, as a reference photo was taken in. |
maxPx | integer | The picture's longest side in pixels, for a smaller one. Default 1920 by 1200, and never longer than 1920. |
photo | object | The photo's crop of the element the view frames, returned beside it in the same call: a door's glass, a lamp's shape, a window's panes, at detail scale, to say what differs. |
position | array | The eye exactly, [x, height, z] in metres; it looks at the target. |
presentation | Verify the actual level presentation: stacked (default), exploded, or solo with a levelId. Solo keeps full-height geometry, including ceilings and any roofs incorrectly owned by that floor; it is not… | |
projection | string | orthographic for a square-on elevation of a face, no perspective. |
target | string | A building, level, wall, zone, door, window or floor item id to frame. Default: every storey in the scene, walls and roofs. |
create_story_shell Create story shell
Create one level-owned building shell from a footprint: the perimeter walls. The floor plate and the ceiling are DERIVED from the rooms the walls enclose — never author a slab or a ceiling here, and never pass boundary/autoFromWalls; createSlab / createCeiling / slabElevation are recorded as room intent instead. Use once per story; do not make first-floor walls span multiple stories.
| Parameter | Type | Description |
|---|---|---|
footprint * | array | |
levelId * | string | |
ceilingHeight | number | string | Ceiling height. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
ceilingMaterialPreset | string | |
createCeiling | boolean | Ceiling intent for the rooms inside the shell. False records hasCeiling: false. |
createSlab | boolean | Floor intent for the rooms inside the shell. False records hasFloor: false. |
namePrefix | string | |
slabElevation | number | string | Walking surface of the derived plate, stored as the room's floor elevation. In metres, or text with a unit ("6 ft"). |
slabMaterialPreset | string | |
wallHeight | number | string | Explicit wall height override. Omit for level-plane-bound walls. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
wallMaterialPreset | string | |
wallThickness | number | string | Wall thickness. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
add_door Add door
Add a door to an existing straight wall at t (0..1 along it), or a passage with no leaf (openingKind opening: a cased opening, an arch). The door slides to stay on the wall and reports clamped. On a railing (wallType railing) it is a gap in the guard as tall as the railing, with no leaf, casing or threshold. Refused with a code, as in the editor: curved walls, walls shorter than the door, a door taller than the wall top where it stands or anywhere along a sloped wall (wall_too_low), and overlapping another door, window or wall item unless force is set. Match the reference with the outline (rec…
| Parameter | Type | Description |
|---|---|---|
archHeight | number | string | Rise of the arch above its straight sides, within height (arch only; default 0.45 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
category | string | What this design is, in one or two words. |
code | string | An optional module (three.js, or bpy with language) for a door (a fan grille, tracery, carved trim): the same module and conventions as add_object, with mount 'wall'. Its size is what it builds (name… |
cornerRadius | number | string | Radius of the rounded top corners (rounded only; default 0.15 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
description | string | A short description of this design, at most 200 characters. |
doorType | string | How it opens (default hinged); garage types for garage doors. |
force | boolean | Place it even where it overlaps another door, window or wall item, like holding Alt in the editor. Only when the person asks for the overlap. |
handleSide | string | Handle side (default: opposite the hinges). |
handleStyle | string | Door handle: lever (default), lever-curved, knob, bar, or plate. |
height | number | string | Door height (default 2.1 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
hingesSide | string | Hinge side (default left). |
language | string | The code's language: 'three' (default) for a three.js module, 'bpy' for a Blender module (see add_object). On an edit it defaults to the language the object was built in. |
leafCount | Panel count: sliding 2–4; folding 2, 4, 6 or 8. | |
name | string | What the user would call this design. |
nodeId | string | Rebuild this door instead of adding one: new code and/or params (get_source provides current code when needed). Its native fields change with update_node. |
openingKind | string | door (default), or opening: a passage with no leaf, framed or arched by the outline, as the editor's door panel offers. |
openingShape | string | Outline of the opening: rectangle (default), rounded top corners, or arch (round top). |
params | object | Values for the params the module declares; on an edit, each one you leave out keeps its current value (clamped to the param's range) and a param new to the code starts at its default. |
position | number | Same as t. |
sidelightLeft | number | string | Fixed glazed light left of a swing leaf, metres; absent or 0 means none. In metres, or text with a unit ("6 ft"). Minimum 0 m. |
sidelightRight | number | string | Fixed glazed light right of a swing leaf, metres; absent or 0 means none. In metres, or text with a unit ("6 ft"). Minimum 0 m. |
sillHeight | number | string | Rarely needed: the door's bottom above the floor the wall stands on (default 0, on the floor). Negative reaches below that floor, down to the wall's bottom, where the wall goes down beside a floor sun… |
slideDirection | string | |
slidingStyle | string | Sliding family: patio (default) or two-track bypass closet. |
style | string | Visual preset (panels only, never the size); same presets as create_room doors[]. |
swingDirection | string | Which way the door opens (default inward). |
t | number | Position along the wall, 0..1: 0 = start, 0.5 = centre, 1 = end. |
tags | array | Up to five short lowercase search tags, at most 32 characters each. |
transomHeight | number | string | Fixed light above a swing door and its sidelights, metres; absent or 0 means none. The full cutout must fit under the wall top (wall_too_low). In metres, or text with a unit ("6 ft"). Minimum 0 m. |
wallId | string | The wall to add the door to. |
width | number | string | Door width (default 0.9 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
add_window Add window
Add a window to an existing straight wall at t (0..1 along it), centred vertically on the wall, or on sillHeight above the floor when given. It slides to stay on the wall and under the wall's ceiling, and reports clamped. Refused with a code, as in the editor: curved walls, railings (railing_window: a railing takes a door, a gap in its guard), walls shorter than the window, a window that fits nowhere under a sloped wall's top (wall_too_low), overlapping another door, window or wall item unless force is set, and a style on a window that is not Fixed (style_needs_fixed_window). Match the referen…
| Parameter | Type | Description |
|---|---|---|
archHeight | number | string | Rise of the arch above its straight sides, within height (arch only; default 0.35 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
category | string | What this design is, in one or two words. |
code | string | An optional module (three.js, or bpy with language) for a window (a fan grille, tracery, carved trim): the same module and conventions as add_object, with mount 'wall'. Its size is what it builds (nam… |
columns | integer | Panes across each operable sash (the whole fixed window), equal widths; overrides the style's panes. |
cornerRadius | number | string | Radius of the rounded top corners (rounded only; default 0.15 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
description | string | A short description of this design, at most 200 characters. |
force | boolean | Place it even where it overlaps another door, window or wall item, like holding Alt in the editor. Only when the person asks for the overlap. |
height | number | string | Window height (default 1.5 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
hingesSide | string | Casement or tilt-turn side hinges (default left). |
language | string | The code's language: 'three' (default) for a three.js module, 'bpy' for a Blender module (see add_object). On an edit it defaults to the language the object was built in. |
name | string | What the user would call this design. |
nodeId | string | Rebuild this window instead of adding one: new code and/or params (get_source provides current code when needed). Its native fields change with update_node. |
openingDirection | string | Casement or awning swing toward exterior or interior, independent of placement (new windows default outward). Ignored by hopper and tilt-turn, which open inward. |
openingShape | string | Outline of the opening: rectangle (default), rounded top corners, or arch (round top). |
params | object | Values for the params the module declares; on an edit, each one you leave out keeps its current value (clamped to the param's range) and a param new to the code starts at its default. |
position | number | Same as t. |
rollerShutter | string | Roller mount (default none): box on the exterior face above the opening, or concealed with a 0.03 m lintel strip and 0.025 x 0.03 m guides inside the reveal. Concealed curtain sits 0.02 m outside the… |
rollerShutterBoxHeight | number | string | Exterior roller box height (default 0.18 m); used only by the box mount. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
rollerShutterOpen | number | Static roller curtain position: 0 down, 1 fully up (default 1), independent of operationState. |
rows | integer | Panes up each operable sash (the whole fixed window), equal heights; overrides the style's panes. |
sashGrid | boolean | Pane grid per operable sash (default false; columns or rows enable it). |
shutterOpen | number | Exterior shutter position: 0 closed over the window, 1 open (default 1). Leaves over 0.75 m fold into two stacked halves; narrower leaves open flat against the wall. |
shutterSides | string | Which exterior shutter leaves to build (default both). |
shutterWidth | number | string | Width per side, uncapped: defaults to half the opening for both sides, full opening for left or right only. Widths over 0.75 m form a bifold pair of equal halves. In metres, or text with a unit ("6 ft… |
shutters | string | Exterior shutters (default none), with a 10 mm overlap lip on one leaf when both sides are present. |
sillHeight | number | string | Height from the floor to the bottom of the window (default: centred vertically on the wall). In metres, or text with a unit ("6 ft"). Minimum 0 m. |
sillInterior | boolean | Add a stool board on the room side (default false). |
sillInteriorDepth | number | string | Interior stool depth (default 0.06 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
sillInteriorOverhang | number | string | Interior stool extension beyond casing on each side (default 0.015 m). In metres, or text with a unit ("6 ft"). Minimum 0 m. |
sillInteriorThickness | number | string | Interior stool thickness (default 0.03 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
sillOverhang | number | string | Exterior sill extension on each side; default 0.4 times sillDepth. In metres, or text with a unit ("6 ft"). Minimum 0 m. |
style | string | Visual preset of a Fixed window's panes (never the size); same presets as create_room windows[]. Fixed windows only: an operable window draws its own sashes. |
t | number | Position along the wall, 0..1: 0 = start, 0.5 = centre, 1 = end. |
tags | array | Up to five short lowercase search tags, at most 32 characters each. |
tiltTurnMode | string | Tilt-turn only: tilt inward about the bottom up to 15 degrees (default), or turn inward about the side hinges up to 90 degrees. |
wallId | string | The wall to add the window to. |
width | number | string | Window width (default 1.5 m). In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
windowHandle | boolean | Show the interior sash handle (default true). |
windowType | string | How it opens (default fixed). |
apply_patch Apply patch
Apply a batch of create/update/delete operations atomically. All patches are validated before any are applied; the entire batch forms a single undo step. Batch-first is the default: prefer one apply_patch call containing all create/update/delete ops for a build step, in stable order so later ops can reference ids created by earlier ops. A single call is atomic (all or nothing) and pays the snapshot and save cost once; do not loop one-op calls. A create whose id already exists fails the whole patch with node_exists; to replace a node, delete it earlier in the same patch. An update cannot change…
| Parameter | Type | Description |
|---|---|---|
patches * | array |
clear_scene Clear the project
Empty the project on purpose, back to the default scaffold: a site, a building and one level of the standard storey height. It is the only way to empty a project: a write that would empty it is refused (scene_wipe_blocked), since that is far more often an accident. Call it only when the person asked to start over, and say what they asked in reason.
| Parameter | Type | Description |
|---|---|---|
reason * | string | What the person asked for, in their words. |
set_zone Set zone
Create a polygonal zone on the given level. label is stored as the zone name and properties are merged into metadata. A polygon along walls that already enclose a room is that room, never a second zone: a room still named "Room N", or already named label, takes the label and properties; a room a person named otherwise is refused (rename it with update_node only when the person asked).
| Parameter | Type | Description |
|---|---|---|
label * | string | |
levelId * | string | |
polygon * | array | |
properties | object |
undo Undo
Undo the most recent N steps in the scene history (default 1). Returns the number of steps actually undone.
| Parameter | Type | Description |
|---|---|---|
steps | integer |
redo Redo
Redo the next N previously-undone steps (default 1). Returns the number of steps actually redone.
| Parameter | Type | Description |
|---|---|---|
steps | integer |
export_json Export JSON
Return the scene as a serialized JSON string. Pass `pretty: true` to indent with 2 spaces.
| Parameter | Type | Description |
|---|---|---|
pretty | boolean |
export_glb Export GLB
GLB export is not available in headless mode — it requires the Three.js renderer, which is browser-only. Returns a structured `not_implemented` tool error.
check_collisions Check collisions
Assess declared item footprints with a rotation-aware plan AABB test. Supports an explicit minimum clearance and reports units, source dimensions, skipped evidence, and unsupported checks. Optionally scope to one level or floor-standing items.
| Parameter | Type | Description |
|---|---|---|
candidate | object | Read-only prospective furniture item. It is checked against the target level but never added to the scene. |
floorOnly | boolean | When true, wall-, wall-side-, and ceiling-attached items are excluded. |
levelId | string | |
minimumClearance | number | string | Minimum free plan-space required between item footprints. In metres, or text with a unit ("6 ft"). Minimum 0 m. |
list_templates List scene templates
List the seed Pascal scene templates available to `create_from_template`. Returns the id, display name, one-line description and node count for each.
create_from_template Create scene from template
Instantiate a seed Pascal scene template into the bridge. Regenerates all ids before applying. When `save: true` and a SceneStore is wired, also persists the new scene and returns the SceneMeta.
| Parameter | Type | Description |
|---|---|---|
id * | string | Template id (see `list_templates`). Currently one of: "empty-studio", "two-bedroom", "garden-house". |
name | string | Optional display name for the saved scene. Defaults to the template name. |
projectId | string | |
save | boolean |
create_house_from_brief Create house from brief
Replace the session's scene with a starter template and save it as an unpublished draft, returning its editor URL. The template follows bedroomCount, rooms and landscaping only: garden-house for landscaping or a garden, patio or yard room, else empty-studio up to one bedroom, two-bedroom for two and garden-house for more. brief, style and constraints neither choose nor shape it; the summary repeats brief. It saves into projectId's project, or a new one named projectName or after the template; with no scene store it saves nothing. Refine it with the semantic tools afterward.
| Parameter | Type | Description |
|---|---|---|
brief * | string | |
bedroomCount | integer | |
constraints | string | |
landscaping | boolean | |
projectId | string | |
projectName | string | |
rooms | array | |
style | string |
create_project Create project
Create a browser-visible Pascal project for the authenticated user. Use this before save_scene when the user asks for a new project.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
id | string | |
isPrivate | boolean |
get_project_status Get project status
Authoritative status/debug call for a Pascal project: editor URL, browser-visible version, latest saved version, published version, node count, and graph hash.
| Parameter | Type | Description |
|---|---|---|
id * | string |
save_scene Save scene
Save the current scene (or a provided graph) to the SceneStore. Without id or projectId it saves to the project this session is bound to (create_project or load_scene). Defaults to a browser-visible draft save so agents can iterate without creating many project versions. Use saveMode: "checkpoint" for meaningful version history.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
expectedVersion | integer | |
graph | object | Full SceneGraph { nodes, rootNodeIds, collections? } to save instead of the bridge state. Judged against the scene it is saved over (the session's scene when the save goes to it, else the stored scene… |
id | string | |
includeCurrentScene | boolean | If true, save the bridge current scene. If false, use the graph arg. |
projectId | string | |
publish | boolean | Hosted Pascal: also publish this checkpoint, making it the version the project's viewers see. Only when the user asks to publish. |
replace | boolean | Write this session's scene over a project or scene it was not loaded from, replacing what that one holds. |
saveMode | string | `draft` updates the browser-visible working model without polluting version history. `checkpoint` creates a meaningful saved version; it does not publish. |
thumbnail | string |
load_scene Load scene
Load a scene from the SceneStore into the bridge. Returns the scene metadata. Throws `scene_not_found` if the id does not exist.
| Parameter | Type | Description |
|---|---|---|
id * | string |
list_scenes List scenes
List scenes in the SceneStore. Optionally filter by `projectId` and cap results with `limit` (default 100).
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
projectId | string |
delete_scene Delete scene
Remove a stored scene by id. In Pascal this never deletes the project: it hides it from Pascal's public listings until it is next saved with content, and answers `deleted: false, hidden: true` with a message; its owner can delete it from the projects page. Only someone who can manage the project may hide it. A local scene store deletes the scene. Optionally pass `expectedVersion` for optimistic concurrency.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
expectedVersion | integer |
rename_scene Rename scene
Rename a scene in the SceneStore. Returns the updated SceneMeta. Optionally pass `expectedVersion` for optimistic concurrency.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
newName * | string | |
expectedVersion | integer |
generate_variants Generate variants
Generate N variations of a base scene by forking and applying seeded mutations. Example: "give me 5 variations of this kitchen". If `save=true`, each variant is persisted via scene operations and returned with an id + URL; otherwise the graph is returned inline.
| Parameter | Type | Description |
|---|---|---|
baseSceneId | string | If set, fork from this saved scene; else fork from current bridge state. |
count | integer | |
save | boolean | If true, also save each variant via SceneStore and return ids. |
seed | integer | Deterministic RNG seed. |
vary | array |
photo_to_scene Photo to Pascal scene
Orchestrator: analyse a floor-plan photo via MCP sampling, translate the structured vision result into a Pascal SceneGraph (site → building → level with walls and zones), optionally save it, and swap the bridge to the new scene. Requires host support for sampling.
| Parameter | Type | Description |
|---|---|---|
image * | string | Base64 or https URL of the floor-plan photo |
defaultWallHeight | number | string | Default wall height. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
defaultWallThickness | number | string | Default wall thickness. In metres, or text with a unit ("6 ft"). Must be greater than 0 m. |
name | string | |
save | boolean | |
scaleHint | string | e.g. "1 cm = 1 m" or "approx 80 m²" |
analyze_floorplan_image Analyze floor-plan image
Defer to the MCP host (via sampling) to extract walls, rooms, and approximate dimensions from a floor-plan image. Requires host support for sampling.
| Parameter | Type | Description |
|---|---|---|
image * | string | Base64-encoded image or http(s) URL |
scaleHint | string | Text hint about scale, e.g. '1 cm = 1 m' or 'approximately 80 m²' |
analyze_room_photo Analyze room photo
Defer to the MCP host (via sampling) to extract approximate dimensions, fixtures, and windows from a single-room photograph. Requires host support for sampling.
| Parameter | Type | Description |
|---|---|---|
image * | string | Base64-encoded image or http(s) URL |