80a5163
name: solidcraft description: >- Drive SolidCraft, the open-source parametric CAD app (tangency-labs/solidcraft), on the user's PC through the Adom Bridge solidcraft bridge (solidcraft_* verbs): launch it in the background, see the open design, run modelling commands, change named parameters, measure, and export STEP, STL or 3MF, live in the open window or headless. Use when the user says "solidcraft", "open in solidcraft", "model this in solidcraft", "design an enclosure for this board", "make a 3d printable enclosure", "parametric cad part", "change the wall thickness and export", or "export a step from solidcraft".
Adom bridge for SolidCraft (keyword: solidcraft)
The solidcraft bridge runs on the user's PC under Adom Bridge and talks to SolidCraft's own
MCP server, so you drive SolidCraft with adom-bridge solidcraft_<verb> from any Adom workspace.
SolidCraft builds real B-rep solids with an editable feature timeline (sketch, extrude, fillet,
shell, hole, pattern), and every value can be a named parameter the user can retune later.
Every verb answers with _hint and _next. Read them: they say what to do next.
First call
adom-bridge solidcraft_status '{"aiThread":"<your thread>"}'
| Result | Do this |
|---|---|
installed:false |
Ask the user to install SolidCraft from https://solidcraft.io/download |
appRunning:false |
solidcraft_start opens it minimised, or pass mode:"headless" to work without a window |
errorCode:"blocked_on_user" from start |
Ask the user to tick Preferences > Assistant > Agents through MCP > Let AI agents connect (once) |
appRunning:true |
solidcraft_state to see the design |
If solidcraft_status returns unknown_verb, the bridge is not installed on that machine:
adom-bridge bridge_install '{"manifestUrl":"https://wiki.adom.inc/api/v1/pages/martypm/solidcraft-bridge/files/adom-bridge-solidcraft-manifest.json"}'.
Verbs
| Verb | What it does |
|---|---|
solidcraft_status |
installed? running? which sessions are connected |
solidcraft_start |
launch SolidCraft minimised, wait until it accepts agents |
solidcraft_state |
the open design (bodies, features, parameters) plus a rendered picture |
solidcraft_tools |
SolidCraft's MCP tools; {"name":"export"} gives one tool's argument schema |
solidcraft_find |
search SolidCraft's commands by words: {"query":"fillet"} returns ids and parameters |
solidcraft_command |
run one command by id: {"id":"solid.box","params":{...}} |
solidcraft_batch |
run many steps in order, with expect checks and dry_run: the usual way to build a part |
solidcraft_open, _save, _export, _new_design |
files (open reads .sc, STEP, meshes and KiCad boards) |
solidcraft_execute |
run one command as {"command","params"} (same as solidcraft_command) |
solidcraft_pending |
the result of a SolidCraft request that was still running |
solidcraft_set_parameter, _check_parameters |
change a named parameter, check all rebuild |
solidcraft_measure, _topology, _inspect, _screenshot, _compare_picture |
look and check |
solidcraft_undo, _redo |
history |
solidcraft_commands, _describe_command |
SolidCraft's modelling commands and their options |
solidcraft_skill |
SolidCraft's own modelling skills (modeling, editing, checking, mechanisms, reporting) |
solidcraft_call |
any SolidCraft tool by name: {"tool":"...","arguments":{...}} |
solidcraft_run |
headless rebuild with parameter overrides: {"in","params":{},"out","save"} |
solidcraft_settings |
the shared project folder and extra allowed folders |
solidcraft_progress |
live progress of start and run |
solidcraft_describe |
the full catalog with each verb's risk |
The tool verbs pass their arguments straight to SolidCraft, which refuses unknown arguments by
name, so use SolidCraft's names: check them with solidcraft_tools {"name":"<tool>"} before the
first call, not by guessing. Add "mode":"headless" to any of them to work without the window.
How to build a part
solidcraft_find {"query":"box"}to get the command id and its parameters.solidcraft_batchwith every step, user parameters first so the part stays editable, andexpectset to the volume and bounding box you computed. A mismatch comes back as an error:
{"commands":[
{"command":"set_parameter","params":{"name":"L","value":"40 mm"}},
{"command":"set_parameter","params":{"name":"W","value":"30 mm"}},
{"command":"set_parameter","params":{"name":"H","value":"10 mm"}},
{"command":"solid.box","params":{"length":"L","width":"W","height":"H"}}],
"expect":{"volume_mm3":12000,"bodies":1}}
solidcraft_stateand look at the picture.solidcraft_export {"path":"/mnt/c/Users/<user>/cad-projects/part.step"}(format follows the extension: STEP, IGES, 3MF, STL, OBJ, GLB, USD).
Never lose the user's work
In the live app the user is usually working in the open design. new_design and open would
replace it, so the bridge opens a new tab for them instead. replaceActive:true replaces the
active design, and is refused with unsaved_changes while it has unsaved changes. A live batch
with an open or new_design step is refused with would_replace_design. Do throwaway work in
mode:"headless", which never touches the window.
Modelling: read SolidCraft's own skills first
Before building anything non-trivial, read the matching SolidCraft skill (solidcraft-modeling, -editing, -checking, -mechanisms, -reporting, -sheetmetal):
adom-bridge solidcraft_skill '{"aiThread":"<t>","skill":"solidcraft-modeling"}'
Those skills track SolidCraft's version; this one only covers the Adom side.
Files
SolidCraft only reads and writes inside allowed folders. The bridge's shared folder is
C:\Users\<user>\cad-projects (/mnt/c/Users/<user>/cad-projects from WSL); solidcraft_status
prints both forms. Paths under /mnt/<drive>/ are converted to Windows paths for you. Paths that
exist only inside WSL (/home/...) are refused with path_not_shared: copy the file into the
shared folder first. Results come back with wslPath so you can read them straight away.
Verify by looking
After each modelling step, call solidcraft_state (or solidcraft_screenshot) and look at the
picture, and solidcraft_measure the dimensions that matter. Pictures come back as a file path
and wslPath (read the PNG); pass inline:true for base64 in the response. Live screenshots are
the whole window and about 1 MB. solidcraft_state summarises the design; full:true gives every
body's measurements and every sketch. For the whole window including any
dialog: adom-bridge desktop_screenshot_window '{"titleContains":"SolidCraft"}'. The bridge never
brings SolidCraft to the front; solidcraft_start takes foreground:true only with a
foregroundReason (read foreground-etiquette first).
Enclosure for a PCB
- Export the board as STEP into the shared folder (KiCad: File > Export > STEP; Altium: see
altium-outputs), orsolidcraft_openthe KiCad PCB directly. - Build the enclosure with named parameters (wall, clearance, standoff height, cut-outs) so
the user can retune it with
solidcraft_set_parameter. solidcraft_measurethe clearance to the tallest parts and connectors.solidcraft_exportSTEP or 3MF into the shared folder.
Errors
| errorCode | Meaning |
|---|---|
app_not_running |
control port closed: solidcraft_start, or mode:"headless" |
blocked_on_user |
waiting for the user to allow agents in SolidCraft |
unsaved_changes |
replaceActive refused: the open design has unsaved changes |
would_replace_design |
a live batch step would replace the open design |
session_closed |
SolidCraft closed or restarted; retry, the bridge reconnects |
tool_unavailable |
this SolidCraft version has no such tool; see availableTools |
tool_error |
SolidCraft rejected the arguments; check the schema |
path_not_shared |
a WSL-only path; use the shared folder |
timed_out |
still working or stuck on a dialog: solidcraft_state before retrying |
---
name: solidcraft
description: >-
Drive SolidCraft, the open-source parametric CAD app (tangency-labs/solidcraft), on the user's
PC through the Adom Bridge solidcraft bridge (solidcraft_* verbs): launch it in the background,
see the open design, run modelling commands, change named parameters, measure, and export STEP,
STL or 3MF, live in the open window or headless. Use when the user says "solidcraft", "open in
solidcraft", "model this in solidcraft", "design an enclosure for this board", "make a 3d
printable enclosure", "parametric cad part", "change the wall thickness and export", or
"export a step from solidcraft".
---
# Adom bridge for SolidCraft (keyword: solidcraft)
The **solidcraft** bridge runs on the user's PC under Adom Bridge and talks to SolidCraft's own
MCP server, so you drive SolidCraft with `adom-bridge solidcraft_<verb>` from any Adom workspace.
SolidCraft builds real B-rep solids with an editable feature timeline (sketch, extrude, fillet,
shell, hole, pattern), and every value can be a named parameter the user can retune later.
Every verb answers with `_hint` and `_next`. Read them: they say what to do next.
## First call
```bash
adom-bridge solidcraft_status '{"aiThread":"<your thread>"}'
```
| Result | Do this |
|---|---|
| `installed:false` | Ask the user to install SolidCraft from https://solidcraft.io/download |
| `appRunning:false` | `solidcraft_start` opens it minimised, or pass `mode:"headless"` to work without a window |
| `errorCode:"blocked_on_user"` from start | Ask the user to tick Preferences > Assistant > Agents through MCP > Let AI agents connect (once) |
| `appRunning:true` | `solidcraft_state` to see the design |
If `solidcraft_status` returns `unknown_verb`, the bridge is not installed on that machine:
`adom-bridge bridge_install '{"manifestUrl":"https://wiki.adom.inc/api/v1/pages/martypm/solidcraft-bridge/files/adom-bridge-solidcraft-manifest.json"}'`.
## Verbs
| Verb | What it does |
|---|---|
| `solidcraft_status` | installed? running? which sessions are connected |
| `solidcraft_start` | launch SolidCraft minimised, wait until it accepts agents |
| `solidcraft_state` | the open design (bodies, features, parameters) plus a rendered picture |
| `solidcraft_tools` | SolidCraft's MCP tools; `{"name":"export"}` gives one tool's argument schema |
| `solidcraft_find` | search SolidCraft's commands by words: `{"query":"fillet"}` returns ids and parameters |
| `solidcraft_command` | run one command by id: `{"id":"solid.box","params":{...}}` |
| `solidcraft_batch` | run many steps in order, with `expect` checks and `dry_run`: the usual way to build a part |
| `solidcraft_open`, `_save`, `_export`, `_new_design` | files (open reads .sc, STEP, meshes and KiCad boards) |
| `solidcraft_execute` | run one command as `{"command","params"}` (same as `solidcraft_command`) |
| `solidcraft_pending` | the result of a SolidCraft request that was still running |
| `solidcraft_set_parameter`, `_check_parameters` | change a named parameter, check all rebuild |
| `solidcraft_measure`, `_topology`, `_inspect`, `_screenshot`, `_compare_picture` | look and check |
| `solidcraft_undo`, `_redo` | history |
| `solidcraft_commands`, `_describe_command` | SolidCraft's modelling commands and their options |
| `solidcraft_skill` | SolidCraft's own modelling skills (modeling, editing, checking, mechanisms, reporting) |
| `solidcraft_call` | any SolidCraft tool by name: `{"tool":"...","arguments":{...}}` |
| `solidcraft_run` | headless rebuild with parameter overrides: `{"in","params":{},"out","save"}` |
| `solidcraft_settings` | the shared project folder and extra allowed folders |
| `solidcraft_progress` | live progress of `start` and `run` |
| `solidcraft_describe` | the full catalog with each verb's risk |
The tool verbs pass their arguments straight to SolidCraft, which refuses unknown arguments by
name, so use SolidCraft's names: check them with `solidcraft_tools {"name":"<tool>"}` before the
first call, not by guessing. Add `"mode":"headless"` to any of them to work without the window.
## How to build a part
1. `solidcraft_find {"query":"box"}` to get the command id and its parameters.
2. `solidcraft_batch` with every step, user parameters first so the part stays editable, and
`expect` set to the volume and bounding box you computed. A mismatch comes back as an error:
```json
{"commands":[
{"command":"set_parameter","params":{"name":"L","value":"40 mm"}},
{"command":"set_parameter","params":{"name":"W","value":"30 mm"}},
{"command":"set_parameter","params":{"name":"H","value":"10 mm"}},
{"command":"solid.box","params":{"length":"L","width":"W","height":"H"}}],
"expect":{"volume_mm3":12000,"bodies":1}}
```
3. `solidcraft_state` and look at the picture.
4. `solidcraft_export {"path":"/mnt/c/Users/<user>/cad-projects/part.step"}` (format follows the
extension: STEP, IGES, 3MF, STL, OBJ, GLB, USD).
## Never lose the user's work
In the live app the user is usually working in the open design. `new_design` and `open` would
replace it, so the bridge opens a new tab for them instead. `replaceActive:true` replaces the
active design, and is refused with `unsaved_changes` while it has unsaved changes. A live batch
with an `open` or `new_design` step is refused with `would_replace_design`. Do throwaway work in
`mode:"headless"`, which never touches the window.
## Modelling: read SolidCraft's own skills first
Before building anything non-trivial, read the matching SolidCraft skill (solidcraft-modeling,
-editing, -checking, -mechanisms, -reporting, -sheetmetal):
```bash
adom-bridge solidcraft_skill '{"aiThread":"<t>","skill":"solidcraft-modeling"}'
```
Those skills track SolidCraft's version; this one only covers the Adom side.
## Files
SolidCraft only reads and writes inside allowed folders. The bridge's shared folder is
`C:\Users\<user>\cad-projects` (`/mnt/c/Users/<user>/cad-projects` from WSL); `solidcraft_status`
prints both forms. Paths under `/mnt/<drive>/` are converted to Windows paths for you. Paths that
exist only inside WSL (`/home/...`) are refused with `path_not_shared`: copy the file into the
shared folder first. Results come back with `wslPath` so you can read them straight away.
## Verify by looking
After each modelling step, call `solidcraft_state` (or `solidcraft_screenshot`) and look at the
picture, and `solidcraft_measure` the dimensions that matter. Pictures come back as a file `path`
and `wslPath` (read the PNG); pass `inline:true` for base64 in the response. Live screenshots are
the whole window and about 1 MB. `solidcraft_state` summarises the design; `full:true` gives every
body's measurements and every sketch. For the whole window including any
dialog: `adom-bridge desktop_screenshot_window '{"titleContains":"SolidCraft"}'`. The bridge never
brings SolidCraft to the front; `solidcraft_start` takes `foreground:true` only with a
`foregroundReason` (read `foreground-etiquette` first).
## Enclosure for a PCB
1. Export the board as STEP into the shared folder (KiCad: File > Export > STEP; Altium: see
`altium-outputs`), or `solidcraft_open` the KiCad PCB directly.
2. Build the enclosure with named parameters (wall, clearance, standoff height, cut-outs) so
the user can retune it with `solidcraft_set_parameter`.
3. `solidcraft_measure` the clearance to the tallest parts and connectors.
4. `solidcraft_export` STEP or 3MF into the shared folder.
## Errors
| errorCode | Meaning |
|---|---|
| `app_not_running` | control port closed: `solidcraft_start`, or `mode:"headless"` |
| `blocked_on_user` | waiting for the user to allow agents in SolidCraft |
| `unsaved_changes` | replaceActive refused: the open design has unsaved changes |
| `would_replace_design` | a live batch step would replace the open design |
| `session_closed` | SolidCraft closed or restarted; retry, the bridge reconnects |
| `tool_unavailable` | this SolidCraft version has no such tool; see `availableTools` |
| `tool_error` | SolidCraft rejected the arguments; check the schema |
| `path_not_shared` | a WSL-only path; use the shared folder |
| `timed_out` | still working or stuck on a dialog: `solidcraft_state` before retrying |