CAD over MCP
The AiChat MCP server lets an external agent create and edit parametric build123d models, inspect saved revisions, measure clearance, and search parts and materials. Projects and revisions stay in your AiChat account. Builds run in isolated CAD sandboxes; the external agent supplies the model reasoning.
The Streamable HTTP endpoint is:
https://aichat.cinderworks.ai/mcp
Connect
You need an AiChat account. Local agent access must be enabled by the operator; the endpoint returns 404 while it is off. OAuth sign-in requires a client that supports Client ID Metadata Documents (CIMD).
Claude and Claude Desktop
In Settings ▸ Connectors ▸ Add custom connector, enter the endpoint above. Sign in to AiChat in the browser, then approve the requested access on the consent page. Enable the connector in your conversation.
Claude Code
claude mcp add --transport http aichat https://aichat.cinderworks.ai/mcp
Run /mcp in Claude Code and select AiChat to sign in through the browser.
Codex
codex mcp add aichat --url https://aichat.cinderworks.ai/mcp
codex mcp login aichat
Sign in through the browser. The equivalent entry in ~/.codex/config.toml is:
[mcp_servers.aichat]
url = "https://aichat.cinderworks.ai/mcp"
tool_timeout_sec = 240
The timeout allows a CAD build to finish within its three-minute deadline. See the Codex MCP documentation for configuration and client support.
Access tokens
In AiChat Settings ▸ Local agents, create an access token with read access and, if needed, write access. Copy it once and configure your client's HTTP authorization header:
Authorization: Bearer cwk_…
For Codex, set bearer_token_env_var = "AICHAT_ACCESS_TOKEN" in the server's
config table and supply that environment variable to Codex.
Scopes
| Scope | Allows |
|---|---|
cad:read | Inspect your projects, revisions, geometry evidence, views, parts and materials; open a workspace for those reads. |
cad:write | Create projects, propose checks, create alternatives, build or restore revisions, and add library parts or materials. Requires cad:read as well. |
offline_access | Keep the connection signed in using rotating OAuth refresh tokens. Adds no CAD permissions. |
Tools
Tools use a workspace handle from Open CAD workspace. Read tools do not edit the design. Design and library writes require write access and are annotated for client confirmation. Opening a workspace is also marked as a write because it creates audit state, but requires only read access.
| Tool title | Tool | Access | Purpose |
|---|---|---|---|
| Open CAD workspace | cad_open_workspace | Write (audit; read scope) | Open a credential-bound workspace, optionally for an existing project. |
| Find CAD projects | cad_list_projects | Read | Page your saved projects and current revisions. |
| Find CAD revisions | cad_list_revisions | Read | Page a project's revision history and build status. |
| Browse CAD groups | cad_list_groups | Read | Find named groups or browse an assembly hierarchy. |
| Find CAD parts | cad_list_parts | Read | Page part facts by exact IDs, labels or group. |
| Find CAD uploads | cad_list_imports | Read | Page saved STEP uploads for a project. |
| Read CAD project | cad_open_project | Read | Get a compact overview of a project or historical revision. |
| Read CAD starter | cad_read_starter | Read | Read the public starter source or build contract. |
| Read CAD revision evidence | cad_read_revision | Read | Read source, parameters, checks, part facts, provenance or downloads. |
| Look at the CAD model | cad_view | Read | Render orthographic views, including 3D views from all four corners, or explicit capture frames as overlays, guides or masks. Chosen parts can be tinted blue while the rest keep their colours. A house on a lot is framed on its buildings, with a little of the ground round them; naming the lot in frame_part_ids shows the whole lot. |
| Check the fit against photos | cad_fit_check | Read | Compare selected parts against explicit capture frames using oriented photo edges and depth; return scores and overlays. |
| Measure clearance | cad_measure | Read | Read the clearance between parts or groups: kernel-recorded for near pairs, measured on the meshes for far ones. |
| Draw a plan sheet | cad_drawing | Read | Draw a dimensioned floor plan (each room's clear size, and a room schedule of every room's size and area with the total), the four exterior elevations, a site plan with setbacks, clearances to each lot line and the distance to each existing building (a site sketch with no lot lines when the model has site work and no lot), two building sections with clear heights to each room's ceiling (flat at its walls' top, marked as a guess, unless the plan sets a height or leaves the room open to the roof), interior elevations of walls with casework, or a schedules sheet (A5) listing every door, window and room of a level, as a PNG, its facts and a printable SVG link. Identical windows share one schedule row that lists their marks and count. Every closed room has a size: a room that is not a rectangle (an L, a room notched by a closet or a chimney breast) shows the largest rectangle that fits inside it, marked *, with a note on the sheet saying so; its area is still the whole room. Every room on a floor plan has its name: whole, in smaller type, or as a short form that shortens words and drops none (BR 2, KIT., HALL CLO.), never one that another room on the level is called; a room too small even for that has a key number, and that key's name and size are in the room schedule on the same sheet (a plan with more keys than its panel holds, about 22, says under its title which keys are named on the schedules sheet instead). A door or window mark stands in a room its opening opens to, beside its own opening. A floor plan whose schedules do not all fit prints the rows that fit and names the schedules sheet for the rest; the notes on the elevations, sections and interior elevations then name that sheet for the door and window schedules. A room a house plan leaves open to a pitched roof is drawn that way: one section crosses the largest such room square to its ridge and prints VAULTED CLG. with the ceiling's height at the wall and at the ridge, its interior elevations run up to the ceiling (a gable wall shows its triangle), and the floor plan writes VAULTED CLG. under its name where the label has room. The floor plan, the sections and the interior elevations list it in their facts under open_to_roof: the sections only a room a cut crosses (another is in left_out), the interior elevations only a room with a drawn wall view. A room left open under a flat roof, with no roof over it, or under a floor of a storey above is never called vaulted; under a flat roof its interior elevations still run up to the roof's level underside. sheet: "set" draws every sheet as one drawing set: a print page and a PDF, one sheet a page, with the schedules sheet when a plan needs it. |
| Find matching CAD parts | cad_resolve_parts | Read | Rank lexical matches for a part reference without a model call. |
| Search standard parts | cad_library_search | Read | Search standard hardware and saved STEP parts. |
| Search materials | cad_material_search | Read | Find material IDs, properties, units and sources. |
| Create CAD project | cad_create_project | Write | Create a project with a build123d starter. |
| Propose a measured CAD check | cad_propose_check | Write | Freeze expected dimensions for one separate rectangular addition. |
| Create CAD alternatives | cad_create_alternatives | Write | Make lettered alternatives from a revision to build several designs. |
| Build CAD revision | cad_build | Write | Build source or parameter edits as a saved revision. |
| Restore CAD revision | cad_restore_revision | Write | Restore an earlier ready design as a new revision. |
| Delete CAD alternative | cad_delete_alternative | Write | Delete an agent-made alternative that has no builds of its own. |
| Delete CAD workspace | cad_delete_project | Write | Permanently delete a workspace and its files, after the user confirms its exact name. |
| Share a view-only link | cad_share_link | Write | Make, list or switch off view-only links to a project; a house link shows its model and drawings, never its photos, scans, uploads or address; lot: true adds its lot, site work and site plan or site sketch (never the street names), only when the owner asks. |
| Add a library part | cad_part_add | Write | Save and measure a STEP file as a reusable part. |
| Create materials | cad_material_create | Write | Add sourced material properties to your library. |
| List the house sources | house_sources | Read | Page a house's sources by number, with each one's status and the plan reader's open questions. |
| Make contact sheets of the house files | house_sheet | Read | Lay a house's files out on numbered contact sheets of thumbnails. |
| View house source pictures | house_source_view | Read | Show pages of a house's files, turned, cropped or enlarged. |
| Read the house plan | house_read | Read | Read a house as its plan has it: summary, estimate, plan, statements, edits or outline. |
| Add to the house | cad_house_import | Write | Keep the owner's words as a text source to cite; with scans, read a capture into the plan. |
| Confirm or reopen the house | cad_house_baseline | Write | Confirm the house as it stands (That's my house), or reopen it so its shape can change, only on the owner's own words. |
| Edit the house plan | house_edit | Write | Write the agent's estimate layer of the house plan. |
| Build the house plan | house_build | Write | Build the house plan onto the main model and wait for the build. |
| Get a link to add house files | house_add_files_link | Write | Give the owner a link to AiChat's add-files page for a house, where they sign in and add photos, plans and PDFs. |
| Refresh CAD scene | cad_viewer_scene | Read; viewer only | Renew the scene URL for the same saved revision. |
House tools
A house starts from the connector: Create CAD project with kind house
makes a house project, and its receipt (and Read CAD project on an empty
one) says what a house project is and which tools read, write and build it, in
place of the enclosure starter. A house tool used on a project that is not a
house says so and names the fix. Read CAD starter with kind house returns
one complete house_edit request for a tiny two-storey house (levels, walls,
an inside wall, a door and a window with their units, floors with the stair's
hole, rooms with a closet, a bath with a tub, toilet and vanity, a kitchen's
base run with wall cabinets above and a peninsula, a gable roof, a stair, the
front, the outside and the ground with a walk on it), tested by building it.
It has no lot: an agent adds one only when the owner or a source gives its
size.
Every sheet of a house built from its plan prints, along its foot, what its
sizes rest on, from the plan's own evidence: for example "SIZES FROM THE
OWNER'S DESCRIPTION, NOT MEASURED." or "ROOMS MEASURED BY PHONE SCAN; OTHER
SIZES FROM A LISTING, NOT MEASURED.". A floor plan gives no heights, so the
line also names the wall heights, roof pitch and window heights that were only
estimated: "SIZES FROM A FLOOR PLAN DRAWING, NOT MEASURED. HEIGHTS, ROOF PITCH
AND WINDOW HEIGHTS ESTIMATED.". A sheet sends site work and separate buildings
to the site plan when the house has its lot, and to the site sketch when it has
site work and no lot; with neither it says they are on no sheet. An elevation sheet names, in a general note, any outside door
or window that no elevation can show (one behind a courtyard's or a recess's
walls) and points to the floor plan; its facts list each in left_out with
what to check. Draw a plan sheet returns the same
words as size_basis, and a share link's sheets print them too. A house build
lists, beside the elements it left out, everything else the plan asked for
that it left out (trim, shutters, site work) in also_left_out, each with its
fix, and says what was built in built: the walls' overall size, as the floor
plan sheet dimensions it, each level's floor area, and how many rooms the plan
has. A room whose walls leave a gap is named in rooms_open and kept out of
the rooms' area, so that area is never more than the floor's (a room marked
outside the walls on purpose, such as a patio, is named the same way, with
how to move or remove it); a garage is
mentioned only when the house has one. Draw a plan sheet for the whole
set gives page_count, every page with the cover. A list cut short in a
reply (a build's arch issues, house_edit's changes) says how many more there
are and where to read them. house_edit names each
element the kit can't build yet by its id, with the kit's words and the shapes
that do build.
A confirmed house keeps its shape, and its looks, lot and street front still
change: house_edit takes set_outside, set_site, set_front, or a revert
of them, and refuses anything else (baseline_locked, with what is possible). The ground (set_site's ground) counts as shape: it lays the foundation, so changing it is refused too.
house_build then builds the confirmed house's own plan with only those
replaced, and only those our estimate changed since it was confirmed, so nothing else in the plan rides along; the build's existing parts
must come out the same, except trim, shutters and site work. Once it is built,
the house is confirmed as it now looks (baseline_moved) and the revision
before stays in history. An idea made on the house before it changed can't be
built into or kept (alternative_outdated); it stays viewable, and is made
again on the house as it is.
Every account has nine tools for house projects. house_sources (read) lists
the house's sources by number,
with each one's kind, label, status and reason, size, whether it is left out,
how it was sorted, how many notes it has, and the plan reader's open
questions, which the owner answers in AiChat (meanwhile the agent can give the
plan's printed sizes through house_edit: an edit whose wall, floor or roof
sizes cite a plan held for its scale, and asked nothing else, answers that question, keeping that it was
the agent's edit, and the plan then reads as used for the plan, there and in
AiChat), and counts every source once: ready
(read into the plan, kept for reference such as a photo, or a plan whose sizes
an edit gave), still on its way
in, held (waiting for an answer, or stuck), failed, or left out; it pages by number
with next_cursor and finds one source by number, id or file name.
Added files are prepared and sorted by a pass that runs once a minute, which
takes a few minutes for a few dozen photos, but a photo can be looked at before
that. While some are on their way in, progress says how many are ready, how
many can be looked at now (start with those), how many cannot yet (a PDF or an
iPhone HEIC to prepare, an upload still on its way), that the types (floor plan,
outside, inside) arrive as sorting finishes, and how long those take: a minute
to the next pass, then the house's share of each pass's 20 files (what other
houses' files due in that pass leave of it), at a stated typical rate (slower
only when the house's own files are measured slower, never faster; "at least"
when files wait behind other houses', a plan is to be read, or a walk or an
address is still being read). Walks and addresses on their way in are named.
wait (up to 120 seconds, with progress every 5 seconds) waits for those only:
it returns once every file left, whatever the filters, can be looked at and has
its type, no plan is left to read and no walk or address is still being read,
and holds no database connection while it waits. A file on its way in far longer than it should be (an upload the page
never finished, an attempt that stopped and was not picked up again, a plan
the reader has not read for half an hour, or no change for half an hour while
no house's files were prepared) is marked stuck, with what to do, and the
progress names their numbers. house_source_view and house_sheet say the same of a file
not ready yet.
A chat app can't hand AiChat the owner's files, so house_add_files_link
(write) gives the owner a link to the house's add-files page in AiChat
(/add/<project id>): they sign in there and pick their photos, plans and
PDFs. As soon as the uploads finish, the page says Done and tells the owner to
go back to the chat and say they are done: their assistant can start with the
photos now (a JPEG, PNG or WebP can be looked at the moment it is added) and,
when something is still being prepared, will wait for the rest. Below that,
for information only, the page counts the files as they are prepared and
sorted ("Getting your files ready: 8 of 27") and says Ready once every file is
prepared and sorted and any plan read, unless the plan reader is unavailable.
When no file could be prepared it says so instead. A file whose upload did not
finish is not counted there, as the page names it with Try these again (and
says the owner may go back with the files that were added); reading_count in
house_sources still counts such a file, its progress names it as an upload
that has not finished for the agent to go on without, and a wait never waits
for it (it may later be called stuck). A plan the plan reader has not read yet counts as ready on the page
(it is prepared and can be looked at) and as being read in house_sources.
The link does not expire and opens only for the house's owner, signed in
to their own AiChat account; the chat's audit conversation records that a link
was given, without the link; the link's reply says both, and that the agent
can start with the photos at once and will wait for the rest. For these accounts the
server's instructions also name the first steps for a house in order (create it
with kind house, give the add-files link, read house_sources, build, draw,
share) in place of the line on other buildings, and a new house
project's receipt says the owner adds files through house_add_files_link.
house_sheet (read) lays the house's files out on numbered contact sheets,
twelve thumbnails to a sheet with each file's number, name and kind in a strip
under it (NOT SORTED YET for a file still on its way in whose type is not
known), up to four sheets a call; it keeps the sheet image with the project
and changes nothing else. A category none matches says how many files are not
sorted yet.
house_source_view (read) shows up to six pictures a call from the house's files, by
source number: each item can name a page, turn it a quarter turn (for a plan
that lies on its side), crop it and enlarge a small scan. Images are at most
2,000 px on a side, with the source number, file name and what was done in a
strip under each, and the text lists them with their size and tokens and the
plan reader's open questions.
A photo the owner just added (a JPEG, PNG or WebP) can be looked at with
house_sheet and house_source_view as soon as its upload completes, before it
is prepared or sorted, and its house_sources reason says so (Viewable now; not sorted yet.); what it shows (its classification) arrives once it is
sorted. A PDF or a HEIC (from the Files app or a computer; a photo picked from
an iPhone's library should arrive as a JPEG, going by WebKit's source, though
that is not yet checked on a phone) can be looked at once it is prepared,
and until then its reason says Viewable once prepared: house_sources with wait waits for it., and house_source_view and house_sheet say the same.
Files waiting to be prepared are taken three at a time, and houses take turns,
so one house's batch no longer waits for all of another's.
house_read (read) reads the house as its plan has it, and house_edit
(write) writes the agent's estimate of it, which house_build (write) builds
onto the main model. cad_house_import (write) keeps what the owner said in
the chat about the house (its sizes, which side faces the street) as a numbered
text source, like pasted listing details: house_edit cites it as it cites any
source, so sizes cited from it read in feet and set_front (which way the
street side faces, in degrees counter-clockwise from the plan's +x) can rest on
it. It runs no model and costs nothing, and the same words give back the same
source. Accounts that have scans can also read a processed scan into the house
plan with it. house_edit's fields carry the shapes an edit takes: an
element's heights (a wall's and a floor's z, a roof's base, above its
level), a roof's four edges (the footprint's −y, +x, +y and −x sides, in that
order), a room's seed (a point inside it, on its level), a stair's run
(treads 254 mm, so it runs one tread short of its risers), a fill's entry,
side and unit options, and a join's two forms. The wall ends an edit makes or
moves are joined by the edit itself where they meet ours or end inside another
wall, as the building kit joins walls drawn without joins, so the house's
corners can move at the next build; the reply's notes say how many. A join the
kit would refuse is never written, and an unjoin lasts until that end moves.
Joining doesn't fix two walls that pass through each other, which house_build
refuses: the edit's notes name both walls and where to split one with
split_wall, and a wall end that stands in a doorway. They also name a door
or window whose unit can't be made at its size (a window unit is at most 3,000
mm wide, a door's 4,200 mm, or 5,500 mm for a sectional garage door) and say
what to do: a wider window is units side by side. When the house has a floor
plan, they name the doors and windows the edit adds or changes that cite no
floor plan, by id and wall (the first few, then how many more): a door or window
goes where the plan marks it, and photos give its size, sill and type. These
are notes, and the edit is kept, so the agent can fix them before it builds. A room's name
lands on its own level's room in the model and on the drawings. house_edit also
says how the house looks from outside: the walls' finish (clapboard, shingles,
board and batten, brick, stone, stucco or concrete) and colour, and the roof's
(asphalt shingles, standing seam or wood shingles), with exceptions for a
feature such as the garage or for named walls and roof wings; and its trim
(window and door casings with sills, corner boards and roof fascia, in one
colour) and shutters (louvered or panel, on the front windows, every window or
the windows named; the front is the one set with set_front; a window whose
own unit already has shutters keeps them in this colour unless it gives one). A porch, screened porch or portico feature with
posts: true stands its roof on posts in the trim colour. A chimney feature
builds in brick unless it gives its own finish (stone, say) and color,
which house_read reads back; an outside exception does not reach a chimney.
house_build
builds it into the model and draws it on the elevation sheets, as for a house
drawn with the building kit; walls with rooms on both sides stay as they are,
and a window or door the kit can't trim or shutter is built without, said in
the build's issues. house_edit also says the lot and its site work: the lot
as a size (width, depth and how far the house sits back from the street, laid
out on the street front) or as its corners, the ground's cover (lawn, gravel or
bare), and driveways, walks and patios (asphalt, concrete, gravel, pavers or
stone) and yard and retaining walls (stone, brick, concrete or timber, with a
height). house_build builds them on the ground and draws them on the
site plan sheet, with the lot lines and their lengths; the other sheets leave
them out. The lot is optional, and is given only when the owner or a source
gives its size: without one the driveways, walks, patios and walls are still
built into the model, and sheet A0 is a site sketch in the site plan's place,
titled SITE SKETCH, with the building and the site work to scale, each with its
name and overall size, and the note "LOT LINES NOT KNOWN. NOT A SURVEY."; it
draws no lot line and gives no lot area, setbacks or distances to lot lines.
Once the plan has a lot, the site plan takes its place. Fences, beds, plants, trees and decks on the lot stay in the plan
and are left out of the build, said in words, as is site work the build can't
make; the house still builds. A design built after the plan reuses the plan's
lot (part site) for its own paving and yard walls. house_edit can also say
where the ground is: how far below the main floor, as one length, by side of the
house (front, back, left and right, on the street front), or as spot levels in
the plan. house_build slopes the lot through it, leaves a basement or a lower
garage standing in a hole in the ground rather than in it, lays the driveways
and walks on it, and stands deck and porch posts on it; the elevation sheets
draw the grade line, the ground's height at the building's ends, the average
grade and the building's height above it, and the site plan marks the spot
levels. With the ground said, the house shows its foundation: a concrete part
from below the ground up to the outside walls that stand on nothing lower, a
lower level's outside walls in concrete where they are more than half under the
ground (a lower garage or a walk-out's open wall keeps its siding, and an
exception of the outside gives any wall the finish it names), and a porch slab,
a step or a chimney outside the house reaching down to the ground. A porch or a
deck can have railings (rails: true on its feature): a guard on its floor's
open edges, never along a wall, with a gap where a step or a stair meets it,
stopping at the porch's posts, in the trim colour (a deck's in its own). Kitchen
and bath fixtures (toilet, tub, sink, vanity, kitchen sink, range, range hood,
fridge and cabinets), a fireplace, bookcases and a window seat go in the plan
too, each against a wall or standing free; the floor plans and interior elevations draw them, and
house_read says each room's in one line. A fixture can have its own colour,
and a base cabinet run, kitchen sink or vanity a colour for its counter (unset,
the counter takes the fixture's colour; set, a sink's faucet shows steel); the
3D view shows them, and a fixture that says none keeps the library's. A range hood
hangs on the wall over a range, drawn dashed on the floor plan. A fireplace stands on the inside of the wall its chimney
is against, with its firebox, surround, hearth and (unless it says no) a mantel,
so that room's wall gets its own interior elevation. Where a part's name or key
number has no room beside it there, the number stands off it on a leader. A
bookcase is built in bays of open shelves (a wall of them is one wide run or
several side by side), and a window seat is a low bench with drawers and a
cushion under a window; the floor plan draws a bookcase's bays and marks a seat
SEAT, and the room's wall gets its interior elevation. A
fixture against a wall with rooms on both sides says which face it stands on,
or house_edit refuses it, naming the room on each side; house_build
and house_read warn of a fixture across a door on its wall, of a toilet,
tub, sink or vanity in a room that is not a bath, of a range hood over no
range, of a counter colour on a cabinet run with no counter, of a window seat
under no window or above its sill, and of a bookcase across a window. A roof wing's four edges say
its shape: all four pitched is a hip, two opposite ones with gables between a gable, one with
three gables a shed, none a flat roof, and three pitched with one gable a roof with a gable at
that end and a hip at the other. The roof plan sheet draws that roof's ridge, its two hips and
a slope arrow on each of its three planes, and the elevations show each end as it is. Any
other mix stays in the plan and is left out of the build, named with the shapes that do
build. A wall under a gable rises
to the roof by itself; a gable end with no outside wall under it (the wall drawn
in short pieces, or with rooms on both sides) is closed with a panel in the
colour of the wall below, or the house's, so no gable stands open. house_build
and house_read also warn of two roofs that slope down into a trough between
them, naming both and their edges, and of a roof drawn through a room it only
partly covers, each with what to change. Without a lot the ground still carries the posts, the foundation
and the site work, and the sheets draw no grade line. house_read says the outside and the lot in one
line each ("Outside: not said." and "Lot: not said." until something says
them), and the ground in one more when the plan says it. A new house starts in
default colours, light grey walls and a dark grey roof with no finish, trim or
shutters, and house_read says so ("Outside: default colours, nothing said
yet") until the outside is set. Scans come from the
AiChat Capture iPhone app, which is not open to every account yet; without it,
add floor plans, photos or the address to the house in AiChat.
cad_house_baseline (write) confirms the house as it stands ("That's my
house"), only on the owner's own words in the chat; confirming again changes
nothing. A confirmed house moves only with its looks, lot and front. With
reopen: true, again only on the owner's words (the house was built
differently, or was recorded wrong), it reopens the house so house_edit can
change its shape: the confirmed revision stays in history, ideas made on it
stay as they are, and the answer says whether the plan now differs from the
confirmed house (naming what was added or read since) and what house_build
will do. Before reopening, the agent tells the owner that those additions will
be built in. The owner confirms it again after. Each confirm and reopen is
recorded with the AI app's name for itself, in AiChat's house status ("Confirmed
by an AI app (name)") and in the workspace's chat. Each takes the project in
project_id, and Read CAD project indexes the house's sources by number,
with a cursor that house_sources reads on from. Photoreal pictures of a house
are made in AiChat, and only administrator accounts can make them for now.
Prompt tools
Administrator accounts see four more tools, which other accounts do not:
app_idea_picture_inputs (read) shows what went into the pictures of an idea
from the iPhone app, and three tools are for the prompts AiChat loads by name,
such as the house guidance and the house photo prompts. Their versions live in
the agents store, where Agents shows and edits them too.
prompt_read (read) lists the prompts with their live and latest versions,
one prompt's versions with notes, which is live and the projects pinned to
each, or one version's text. prompt_push (write) saves new text as the next
version, a draft that changes no one's turns, with a note; project_id pins
it to one of your projects, and live makes it live for everyone.
prompt_set (write) makes a version live (also to roll back), or pins or
unpins a version for one of your projects, whose turns then use it. Saving a
prompt on the Agents page makes the new version live.
Alternatives
For several designs of one request, Create CAD alternatives makes up to six
named alternatives at once, lettered in order (B, C, D…), each starting from
the current model or another ready revision. Build CAD revision with
option set to a letter builds into that alternative; the main model doesn't
change. Each alternative appears in the workspace's model menu as it's made,
and keeping one is your choice in AiChat. A project holds up to 50
alternatives; an alternative an agent made that has no builds of its own can be
deleted, and its letter is never given to another. Pass the same
idempotency_key to make a retried call return the same alternatives: any
deleted since are marked deleted rather than made again, and the key can't be
reused with different names or base.
Part phases
A home or renovation project models the house as it stands with parts of
phase existing, and each design change as phase new parts plus phase
removal volumes: boxes marking material to demolish or cut, such as an
opening widened through a wall. Part facts include phase when the source
declares one; an unphased part counts as new.
Existing parts are never edited to show a design. A build into an alternative,
or in a project with a protected revision, fails when an existing part is
missing, changes phase or changes shape (existing_part_changed and related
codes), or when it adds survey parts. A room's ceiling from a house plan is
the exception: it follows the walls round the room, which are checked, so a new
wall in an existing room may change it. On the main model of an unprotected
project the build succeeds and records the change as a survey correction, with
a warning. Removal volumes have no material, stay out of the BOM, mass and STL,
and show as red ghosts; the preview cuts existing parts open where they reach.
STEP keeps every part uncut, with removal volumes labelled "(removal)".
Part provenance
A build can record how each part it adds or changes was known, keyed by part
ID: observed (fitted to capture evidence or a tape measurement),
estimated (standard sizes, priors or partial views), inferred (a small
unseen gap filled by symmetry or continuation) or unknown (a placeholder),
with optional capture IDs, a scale source (arkit, tape or prior) and a
short note. Pass it as provenance on Build CAD revision: up to 200
entries within 32 KB, and every capture must belong to the project.
Later builds keep a part's record while its geometry stays the same, measured
by its geometry fingerprint; a part that changes loses its record unless the
build records it again, and an attempt that fails records nothing. Restoring
or keeping a revision keeps its records. The build result summarises how many
parts are recorded, carried over or unrecorded, and cad_read_revision with
section provenance lists every part. Notes are the agent's own text and are
treated as data, not instructions.
Architecture kit
Build source can model a building with from arch import ...: walls whose
joins and openings are data, door and window fills, removal boxes, slabs and
rooms. cad_library_search with category architectural returns its
reference, and it is part of aichat://cad/guidance. Walls mitre where they
meet, and the kit derives every solid from those records, so the same source
gives the same parts. A new opening in an existing wall becomes a removal box
plus a new door or window, and the wall itself is never cut, so alternatives
keep the surveyed house unchanged. The kit refuses impossible requests with a
code and a fix (opening_outside_wall: … Fix: offset must be 0–3100). A
RoomPlan scan becomes a survey model whose source holds the scan as data
(ws = load_plan(PLAN)): existing walls, openings, door and window
placeholders and floors, ready to protect before designing on it.
Builds with kit parts run an advisory house check: the receipt's
summary.arch counts its errors, warnings and notes and lists the first, and
cad_read_revision with section arch lists every issue and the rooms the
walls enclose. It never fails a build, and issues on existing parts alone are
notes, since it judges the design rather than the survey.
Revisions of a house project carry the house plan as data. cad_read_revision
with section plan lists the plan's elements (walls, openings, floors, roofs
and more) with their sources, and filters by ids. A revision without a plan
reports available: false.
Resources and prompts
aichat://cad/guidance: CAD modelling guidance and evidence limits.aichat://cad/library: the standard parts catalog.aichat://cad/projects/{project}/revisions/{revision}: a compact owned revision overview, available without opening a workspace.ui://aichat-cad/viewer: the inline 3D viewer.
The optional prompts are design_part (description and constraints),
fix_interference (project ID) and review_revision (project ID and optional
revision ID). They provide starting workflows for those requests.
Inline 3D viewer
Clients with MCP Apps support show the model in the conversation after a build, revision read or rendered view. The message holds a preview card: the rendered view, or a still frame of the model, with the part count and any overlaps. Expand opens the interactive viewer full screen, with the parts and interference lists. Pop out keeps it in a floating window while you keep chatting. Each appears when the client supports that mode. In the viewer, orbit, zoom, fit the model, select parts and inspect interference highlights. Clients without either mode offer Interactive 3D in the message instead; click the model before scrolling to zoom it. Open in AiChat opens the saved revision in the full workspace.
Where the client accepts it, the viewer tells the agent which revision you are looking at and which parts you have selected. Scene links expire after ten minutes and the viewer can refresh them. Clients without MCP Apps support receive text results and model links.
Model, sheet and PDF links open in AiChat for the project's owner, signed in. A share link made with cad_share_link opens for anyone who has it, until it is switched off. A house's share link opens on the house in 3D, unless its address names the plan or a sheet.
A house's link hides its lot unless it is made with lot: true; then it also shows the ground, the
paving and yard walls, and the site plan with the lot's sizes and the distances to its lines, but
never the lot edges' street names. A house with site work and no lot is the same: its paving, yard
walls and site sketch show only on a link made with lot: true.
Open one while signed out and AiChat asks you to sign in, then shows it.
Manage access
AiChat Settings ▸ Local agents lists access tokens and OAuth grants with their permissions. Revoke a grant or token there to stop its next request. Revocation preserves your projects and revisions. Reconnect and sign in again to grant new access.
Limits
- A workspace admits at most 300 builds per hour. Account quotas and the 50 builds per day CAD limit also apply.
- A build waits at most three minutes and sends progress about every five seconds. Interruption or cancellation cancels the build; its saved status distinguishes ready, failed and cancelled attempts.
- Workspace handles expire seven days after their last use and belong to the credential that opened them.
- Inspection and build text results use a 12 kB serialized budget. Larger inventories and source return cursors or explicit fragments; rendered images and catalog results have separate bounds. Lists default to 20 rows, with at most 50; source searches default to five matches.
- MCP requests are limited to 4 MiB. STEP files added to the parts library are limited to 25 MiB.
Geometry checks establish the facts reported in a revision. They do not certify structural strength, printability or manufacturing readiness.
Privacy and support
AiChat stores your projects, source, revision artifacts, and tool audit records in conversations named External agent · …. A measured-check proposal also stores the short owner request supplied by the external agent. The server does not retrieve your external client's chat history. OAuth stores client metadata, consent grants and token records; access tokens are stored as hashes.
See the privacy policy for storage, service providers and retention. For support, email [email protected].