kernelCAD

v0.17.1
com.kernelcad/kernelcad Checked 4 days ago Published 1 month ago

CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

open_in_studio Open in Studio

Save the model as a kernelCAD project AND show it: persists a project revision, returns the interactive Studio viewer (MCP Apps / ChatGPT outputTemplate), and includes a PNG preview in the SAME tool result (image content + previewUrl when available). For a new private model pass new_project:true, privacy:"private" over an authenticated connection. Private models return an owner-only Studio link without public preview, mesh or animation artifacts. For an update, pass expected_version from your read to refuse overwriting a newer revision. Decide electronics actions from the user request at rende…

ParameterTypeDescription
anon_tokenstringAnonymous owner token returned as `anonToken` by an earlier open_in_studio result. Pass it on every open_in_studio call, also in a new chat, so all your anonymous projects stay together and move to th…
attachmentsarrayComplementary project files referenced by relative path from the .kcad source.
body_bboxobjectBody AABB { min:[x,y,z], max:[x,y,z] } mm — for likeness_profile gate when no session attest.
cabin_bboxobjectOptional cabin AABB for likeness gate.
codestringThe full .kcad source of the model to open in Studio (the script you have been editing). Optional: omit to reuse the source from your most recent evaluate_script call.
continue_designbooleanPass true to add a revision to the design this chat is already saving, even when this call is a different cookbook or title. Ignored when `project` is set.
expected_versionintegerUpdate only. The revision read before editing. Refuses the save if another writer changed it; read and reconcile the current revision before retrying. Requires project or slug and cannot be combined w…
include_previewbooleanDefault true: render an iso PNG preview into this same tool result (reuses the server render cache when this source was already rendered). Set false to skip rasterization and return save/viewer URLs o…
intentstringThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.
likeness_profilestringHard success gate for organic/car bodies. When set, open_in_studio returns ok:false unless body-likeness is publishReady (inline body_bbox/wheels/still_verdicts, or a prior verify body-likeness pass f…
new_projectbooleanPass true only when the user wants a separate, new design. Default: continue this chat's project, or your project with the same title from the last 24 h. Still wins over a matching title or cookbook.
parametersarrayOptional list of the model's editable parameters, so Studio can render parameter controls. Each item is one control derived from the .kcad params.
privacystringCreation only. Default public_unlisted preserves link sharing. private requires authentication and does not publish preview, mesh or animation artifacts. Use new_project:true when creating an independ…
projectstringSlug of the project to update (from the last open_in_studio result, a "Saved to your projects" note, list_my_projects, or a /p/<slug> link). Adds a new revision to that project instead of creating a n…
require_stillsbooleanForwarded to body-likeness gate (default true).
show_electronicsbooleanAgent render decision. Default false. Set true to show Electronics in LabWired when relevant to the requested design, even before a PCB exists. Set false for mechanical-only models. Existing links nev…
slugstringOlder name for `project`. Use `project`.
still_verdictsarrayAgent still checklist for likeness gate [{ code, passed, finding, view? }].
titlestringOptional human-readable title for the model (shown in Studio). Defaults to "Model from Claude".
wheelsarrayWheel centres + radii for likeness gate [{ center:[x,y,z], radius }].

get_project Get Project

Use this when you need to reopen a saved project or browse what the user has saved — it fetches a kernelCAD Studio project, or lists the signed-in user's saved projects. Pass `slug` (from a /p/<slug> link or a prior listing) to fetch that project's full .kcad source and metadata — then edit and open_in_studio with the same slug so the user's open tab updates live. Private projects require their owner's OAuth connection. OMIT `slug` to list the signed-in user's saved projects (most recently updated first); that listing mode requires the OAuth connection and does NOT paint — prefer list_my…

ParameterTypeDescription
slugstringThe project slug from a listing or a /p/<slug> Studio link. Omit to list the signed-in user's saved projects.

get_project_revision Get Project Revision

Fetch the exact immutable .kcad source and parameters captured at a prior `open_in_studio` version. Use this to read-after-write verify a release: pass the returned `slug` and `version`, then hash or inspect the returned source. Public/unlisted projects use the slug as capability; private projects require the owner's OAuth connection.

ParameterTypeDescription
slug *stringProject slug returned by open_in_studio.
version *integerPositive immutable revision version returned by open_in_studio.

get_model_mesh Get Model Mesh

Return the raw per-feature triangle mesh (positions/indices/normals) of a project by slug. Pass version for an exact immutable revision; omission reads the current model. The result echoes slug and version. For the in-chat 3D viewer widget to render geometry; delivered over the MCP Apps bridge. The slug is the capability: public/unlisted need no OAuth; private requires the owner signed in. This tool returns geometry without publishing a mesh, preview or animation artifact.

ParameterTypeDescription
slug *stringProject slug from open_in_studio/get_project.
versionintegerExact immutable revision from open_in_studio/get_project_revision. Omit only to read the current model.

request_upload Request File Upload

Use this when the user has a photo, PDF drawing, STEP, STL, DXF, SVG or 3MF file on their device and you need it in a kernelCAD tool (trace_from_image, drawing_to_cad, mesh_to_features, inspect of:"step", or lib.fromSTEP / fromSTL / fromDXF / fromSVG / referenceImage in a script). Do not ask the user to paste the file as text or base64, and do not type coordinates from an image by hand. Returns a one-time `uploadUrl` (valid 30 minutes) and an `asset` reference. Give the user the link; after they say the upload is done, pass the `asset` value ("asset:<id>") as the file argument, for example tra…

ParameterTypeDescription
purposestringOptional short note shown on the upload page, e.g. "the photo of the worn bracket".

lookup_authoring_skill Look Up Authoring Skill

Return the kernelcad-authoring skill — conventions for writing .kcad.ts scripts (API surface, parameters, evaluation contract, common pitfalls) — in sections. Call with NO arguments first: you get the quick-start (units, axes, the return rule, the rules that prevent most failures, the intent → API routing table, the "Before you finish" checklist) and an index of every section with a one-line summary (under 17k chars). Then pull what you need: `{ section: "<id>" }` returns one section (e.g. "top-level-functions", "materials", "dfm-gates-print-readiness"); `{ query: "fillet after subtract…

ParameterTypeDescription
querystringKeywords to search section titles and bodies (e.g. "sweep along helix").
sectionstringSection id from the index (e.g. 'top-level-functions'), or 'all' for the full skill.
topicstringAlias of section; also accepts a loose title such as 'materials' or 'cli commands'.

evaluate_script Evaluate CAD Script

Run a script and check the built model against its declared requirements. A full result has buildOk for geometry availability and ok for overall acceptance: a failed or not-evaluated requirement makes ok:false while retaining built geometry for inspection. Full local builds return viewerUrl: a live Studio link reused and updated on later full builds in the same MCP process. Hosted builds return viewerMode: hosted and viewerHint pointing to open_in_studio; they do not start a loopback viewer. Full evaluations return step evidence: build validity, volume and before/after local PNG paths in one s…

ParameterTypeDescription
baselinearrayThe `selections` of an earlier evaluation of this model. A selector that now binds to a different face or edge is reported as selector.binding-changed (warning), one whose entity only moved or resized…
codestringInline kernelCAD script source.
dry_runbooleanFast validation only: skip solid build, DFM gates, and meshing. Does not set or clear the active session.
filestringPath to a .kcad.ts script file. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files.
intentstringThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.
kernelstringSolid-modeling kernel. Default 'occt' (OpenCascade); opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics.
patcharrayEdit-and-test in place: use with file "project:<slug>" instead of resending the script. Each { old, new } replaces text that must occur exactly once in the saved source (no match or several matches is…
requirementsarrayCall-time external requirements ([{ name, predicate }]) measured in the same `requirements` ledger, tagged source: 'external' and never persisted. The predicate is the serializable form of require():…
skip_mechanism_checkbooleanOpt out of the default mechanism-truth gate. By default a full evaluation of an assembly-built scene runs checkMechanismTruth and returns a `mechanism` verdict (real/broken/unverified); a broken mecha…

inspect Inspect Model

Use this when you need to read facts about a model. One reader, selected by `of`: - 'assembly' — physical assembly inventory (parts, bboxes, connectors, mates, disconnected solids). - 'robot' — URDF/SDFormat export preview (links, joints, planning groups, end-effectors, issues). - 'step' — inspect an imported STEP file: solid tree, exact bbox/volume, analytic planar/cylindrical faces, hole axes, and conservative hole/pocket/boss/slot/round candidates with per-feature status/confidence. - 'brep' — the same recognition report for a native OCCT BREP file, including BRepCheck validity per…

ParameterTypeDescription
of *stringWhich facts to read.
assemblystringof:'assembly'|'robot'|'bom' — assembly name; defaults to the first captured assembly.
atnumberof:'section' — single slice position along `axis` (mm).
axisstringof:'section' — normal axis for `at` / `stack` (default 'z').
categorystringof:'part-families' — optional top-level category to filter families by.
codestringInline kernelCAD script source.
densitynumberof:'mass' — material density in kg/m^3 (steel 7850, aluminium 2700, ABS 1050). Defaults to 1000 (water); the response echoes the value used and flags when it was defaulted.
edgesobject | array | stringof:'continuity' — optional EdgeQuery or @kc[...] ref(s) limiting which shared edges are sampled.
face_namestringof:'face-edges' — canonical face name (required for that subject).
facesobject | array | stringof:'curvature' — optional FaceQuery or @kc[...] ref(s) limiting which faces are sampled.
feature_idstringof:'shape'|'mass'|'topology'|'edges'|'faces'|'face-edges'|'face-labels' — FeatureId; defaults to the last returned shape.
filestringPath to the subject file: .step/.stp for of:'step', .brep for of:'brep', or a .kcad.ts script for script-backed subjects. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` lin…
gyration_axisobjectof:'mass' — optional axis in shape-local mm to report the radius of gyration about. Omit for centroidal quantities only; the result is density-independent and returned in mm.
patcharrayEdit-and-test in place: use with file "project:<slug>" instead of resending the script. Each { old, new } replaces text that must occur exactly once in the saved source (no match or several matches is…
planestring | objectof:'section' — section plane. Either a cardinal name string 'xy'|'xz'|'yz', { plane: 'xy'|'xz'|'yz', offset? }, or { origin: [x,y,z], normal: [nx,ny,nz] }. Omit to use `at`+`axis`.
queryobjectof:'edges'|'faces' — optional EdgeQuery/FaceQuery filter. of:'mates' — optional { poses: { [mateName]: number | [number,number,number] } } to solve the same captured assembly and return solution.…
spike_factornumberof:'curvature' — spike sensitivity as a multiple of the face's Gaussian stddev (default 6).
stackobjectof:'section' — dense scan: `count` slices evenly spaced from `from` to `to` along `axis`; response reports minAreaIndex/minAreaPosition.

verify Verify Design

Use this when you need to check a design against a rule set. One verifier, selected by `check`: - 'assembly' — static assembly review ({ file | code }, or the session evaluate_script left): mate validator, default-pose interference, joint topology, mechanical plausibility. ok:false with `blocking[]` exactly when review_cad's blocking rules fire on these findings; review_cad also sweeps joint ranges and runs physics. - 'urdf' — structural validity of a .urdf file ({ urdf_path }). - 'dfm' — print-readiness gates declared by dfmSpec() ({ file | code }). - 'dfm-preflight' — sheet-metal fla…

lookup_api Look Up API

Look up the kernelCAD script API by symbol, plain-language query, and/or section. Plain-language matches are ranked across sections. Results contain exact runtime signatures. All matching entries are returned by default; set limit and offset only when you want pages. Omit query and section for the compact API index and section counts. Use query to request full descriptions of matching entries. intent is telemetry, not a search query. Lookup responses include `kernelSource`: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API referenc…

ParameterTypeDescription
intentstringThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.
limitintegerOptional entries per page; omit to return every match.
offsetintegerContinue from next_offset with the same query and section.
querystringAPI symbol or plain-language terms; matching entries retain full descriptions.
sectionstringRestrict results to one section from the returned section index.

export Export

Use this when you need to export geometry to a file. One exporter, selected by `target`: - target:'model' — export the script geometry to one file. Pass { file | code }, a required { output_path }, and { format }. Supported formats: stl (binary STL mesh), step (BREP CAD interchange), dxf (2D cut file for laser / waterjet / CNC: a flat part — plate, panel, extruded profile, in any orientation — exports its outline and holes in its own plane with exact arcs and circles; a sheet-metal part or a returned Region exports its flat pattern; a flat or sheet-metal part also returns sheet { thickne…

lookup_cookbook Look Up Cookbook

Use this when you need a canonical pattern snippet for a CAD task. Search the kernelCAD cookbook for canonical pattern snippets. Returns top-k snippets matching the natural-language query, ranked by BM25 over title/tags/keywords/trigger. Use when you need a canonical pattern for fillet-after-subtract, non-overlapping booleans, sketch-to-extrude flows, etc. Returns empty if no snippet scores above the relevance floor — proceed without cookbook help in that case. Lookup responses include `kernelSource`: the exact kernel package version/revision, composed runtime source hash, and version-pinned…

ParameterTypeDescription
idstringExact snippet id as the skills cite it (e.g. "clearance-hole-through-plate"); returns that snippet. An unknown id is ranked as a query.
intentstringThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.
knumberMax snippets to return. Default 3, max 5.
querystringNatural-language description of what you want to do (e.g. "round the rim of a hole", "build an L-bracket"). One of query / id is required.

review_cad Review CAD Model

Run a deterministic mechanism-fitness review on supplied kernelCAD code or a file. It performs a full evaluation, replaces the active MCP session model on success, and clears that session if evaluation fails. The script may load referenced assets. The review validates the assembly/mate graph and connector placement, samples declared mate limits, optionally checks interference at sampled poses, and reports connector workspace bounds, fitness findings, and a repair mode (none, local-fix, parameter-tune, or topology-redesign). Runs within time_budget_ms (default 90 s); stages that do not fit are…

ParameterTypeDescription
assemblystringAssembly name; defaults to the first captured assembly.
codestringInline kernelCAD script source.
combinatorialbooleanSample all 2^N limit-corner combinations across mates with declared limits. Capped at 8 mates with limits; combine with samples_per_mate for both interior coverage and worst-pose detection. Default fa…
design_goalstringOriginal user design prompt or goal. Included in suggestedRepairPrompt so topology-redesign repairs restart from the intended physical design instead of local coordinate nudges.
epsilon_mm3numberInterference volume threshold in mm^3. Default 0.01.
filestringPath to a .kcad.ts script file. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files.
include_interferencebooleanWhether sampled poses run BREP interference checks. Default true.
include_pose_envelopebooleanWhether to sample declared mate limits. Default true.
mechanismSweepBudgetintegerMaximum estimated BREP work for mechanism limit sweeps and DOF probes. If omitted, the hosted default is 80000 on a ready sandbox with the attested bounded-16g-v1 capacity profile; otherwise it is 400…
mechanism_sweep_budgetintegerMaximum estimated BREP work for the mechanism limit sweep and DOF probes. Default 40000. Existing sampling, tolerances and job time/memory guards apply. design_loop forwards this budget to every attem…
physical_use_case_levelstringEscalating physical-use-case depth; each level includes the previous. 'reachability': targeted sampling over scalar-limited mates named in actuatorLimits, rejecting contacts that cannot get within cri…
physical_use_case_samples_per_mateintegerSamples per scalar-limited actuator mate for physical-use-case contact reachability. Samples revolute/cylindrical/pin-slot limitsDeg and prismatic limitsMm. Default 3; total targeted combinations are…
preserve_interfacesarrayExternal mates, connector refs, part names, or behavioral interfaces the repair agent must preserve during redesign.
require_physical_use_casebooleanWhen true, articulated assemblies must declare arm.physicalUseCase(...) evidence: loads, contacts, stable parts, and actuator limits.
samples_per_mateintegerPose-envelope samples per declared-limit mate. 1 (default) = corners only; >=3 adds uniform interior points between min and max. Total samples per non-locked mate = samples_per_mate.
time_budget_msnumberWall-clock budget for the review in ms (default 90000). Once spent, the remaining heavy stages (pose envelope, physical use case, mechanism sweep) are skipped and listed in skippedStages — a partial…
track_connectorsarrayOptional connector refs such as ["gripper-plate.tool-tip"] to limit connector workspace reporting.

design_loop Run Design Loop

Use this when the goal is complex / production / enclosure / gearbox / robot-arm / multi-body, or when you need evaluate→review/verify→revise until green. PREFERRED over one-shot evaluate_script+open_in_studio for Adam-level parts. Runs a CAD design loop over attempt scripts: review_cad each attempt, continue past functional attempts with unresolved warnings, return repair prompts (nextActionPrompt) plus structured revisionAssist (suggestedPatches / autoApplied.suggestedCode for repairable feature failures; cookbook steers for stacked-primitive toys). Stop on ok or convergence.escalate. To…

ParameterTypeDescription
attempts *arrayOrdered design attempts. Each item is { id?, title?, file? OR code?, visualReview? } — provide file or code (at least one). File attempts can be replayed by Studio build records.
goal *stringOriginal user design goal. Fed into every review_cad repair prompt.
allow_review_warningsarrayWarning diagnostic codes the original prompt explicitly allows. Other review warnings keep the loop iterating even if review_cad is functionally ok.
assemblystring
auto_revisebooleanWhen true (default), failing attempts with repairable feature diagnostics (boolean miss, oversized fillet, …) run bounded repair_script and attach revisionAssist.suggestedPatches / autoApplied.sugge…
combinatorialbooleanSample all 2^N limit-corner combinations across mates with declared limits. Capped at 8 mates with limits; combine with samples_per_mate for both interior coverage and worst-pose detection. Default fa…
consensusbooleanBest-of-N by geometric consensus. When true, attempts are N independent candidates for the SAME goal (not a repair sequence): all are reviewed (stop_on_pass ignored), all scripts are executed, candida…
epsilon_mm3numberForwarded to review_cad.
include_interferencebooleanForwarded to review_cad. Default true.
include_pose_envelopebooleanForwarded to review_cad. Default true.
mechanismSweepBudgetintegerMaximum estimated BREP work for mechanism limit sweeps and DOF probes. If omitted, the hosted default is 80000 on a ready sandbox with the attested bounded-16g-v1 capacity profile; otherwise it is 400…
mechanism_sweep_budgetintegerMaximum estimated BREP work for the mechanism limit sweep and DOF probes. Default 40000. Existing sampling, tolerances and job time/memory guards apply. design_loop forwards this budget to every attem…
output_record_pathstringOptional JSON path to write a Studio-compatible build record.
preserve_interfacesarrayExternal mates, connector refs, part names, or behavioral interfaces the agent must preserve between attempts.
record_titlestringOptional title for the build record.
require_physical_acceptancebooleanRequire declared physicalUseCase common-pose reachability and pose-bound quasi-static certification before accepting an attempt. Design-loop also enables this automatically when an attempt script call…
require_visual_reviewbooleanRequire screenshot-backed visual_review with structured checks before accepting an attempt. Default true; set false only for explicit non-visual batch checks.
requirementsarrayCall-time external requirements ([{ name, predicate }]) every attempt is graded against, in the same ledger as script require(). Predicate shape: { metric, a?, b?, op, limit, tolerance?, density? }; o…
samples_per_mateintegerPose-envelope samples per declared-limit mate. 1 (default) = corners only; >=3 adds uniform interior points between min and max. Total samples per non-locked mate = samples_per_mate.
stop_on_passbooleanStop after the first attempt that is functional and passes the quality gate. Default true.
track_connectorsarrayConnector refs to track across sampled poses.

render_preview Render Preview

Use this when you need to LOOK at a kernelCAD model — render its script to deterministic PNG views for visual self-check (the visual half of the evaluate → render → inspect → fix loop), with NO studio or dev server required. Pass { code } (inline source) or { file } (a .kcad.ts path), exactly one. Renders the canonical engineering views (front, right, top, iso — pass { views } for a subset, e.g. ["iso"] for fastest iteration) plus an optional { pose: "<az>,<el>" } arbitrary camera angle (degrees; az=0,el=0 is front, +az rotates CCW around +Z, +el lifts the camera). NO STUDIO / DEV-SE…

import_step Import STEP

Use this when the user wants to start from their own STEP, IGES, native OCCT BREP, STL, OBJ, PLY, 3MF, glTF or GLB file (a part they designed elsewhere, a vendor model). Give exactly one source: url (a public https direct-download link), upload (a file the user attached in ChatGPT), or content_base64 (raw bytes, small files only). Max 50 MB. The format is detected from the bytes or file name (or pass format: 'step' | 'iges' | 'brep' | 'stl' | 'obj' | 'ply' | '3mf' | 'gltf' | 'glb'). STEP, IGES and BREP produce exact B-rep solids; IGES uses OCCT's reader and the shared topology repair pass, whi…

ParameterTypeDescription
allow_openbooleanSTL only: accept a non-watertight mesh as an open shell.
content_base64stringThe file bytes, base64-encoded (small files).
file_namestringOriginal file name, used for format detection.
formatstringOverride format detection.
namestringBase name for the written files. Default 'imported'.
output_dirstringWhere to write the file and starter script. Default: a new temp directory.
uploadobjectChatGPT file reference for a file the user attached.
urlstringPublic https URL that downloads a .step/.stp/.igs/.iges/.brep/.brp/.stl/.obj/.ply/.3mf/.gltf/.glb file directly.

dfm_review Review Manufacturability

Use this when you need a manufacturability (DFM) report before printing, machining, bending (sheet metal) or injection molding a part: returns a three-state checklist, no dfmSpec(...) needed. Pass { file | code } and optional processes: 'fdm' | 'cnc' | 'sheet-metal' | 'injection-molding'. Without an override, declared part processes select fdm for '3d-print', cnc for 'cnc', and sheet-metal for 'sheet-cut'; parts with no declaration keep the ['fdm', 'cnc'] defaults. An explicit processes list applies to every part. FDM 3D printing checks: fdm.overhangs (unsupported overhang steeper than max_ove…

ParameterTypeDescription
approach_axesarrayCNC tool approach directions, one per setup (the tool comes from that side). Default ['+z'].
build_directionstringFDM part-local axis pointing up from the bed. Default '+z'.
codestringInline kernelCAD script source.
filestringPath to a .kcad.ts script file. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files.
hole_to_bend_thicknessesnumberSheet metal: hole edge to bend line must be ≥ this × thickness + bend radius. Default 2.5.
hole_to_edge_thicknessesnumberSheet metal: hole edge to blank edge must be ≥ this × thickness. Default 2.
max_bridge_mmnumberFDM longest unsupported bridge, mm. Default 10.
max_overhang_degnumberFDM steepest printable overhang, degrees from vertical (0 = wall, 90 = flat ceiling). Default 45.
max_undercut_area_mm2numberCNC unreachable area tolerated before cnc.undercuts fails, mm². Default 1.
max_wall_mmnumberInjection molding: thickest allowed section, mm. Default 4.
max_wall_rationumberInjection molding: thickest / thinnest wall above this warns (non-uniform walls warp and sink). Default 2.5.
min_bend_radius_rationumberSheet metal: inner bend radius must be ≥ this × thickness. Default 1.
min_draft_degnumberInjection molding: minimum draft angle to the pull direction, degrees. Default 1.
min_flange_thicknessesnumberSheet metal: flange length from the outside of the bend must be ≥ this × thickness. Default 4.
min_radius_mmnumberInjection molding: smallest internal corner radius before mold.sharp-internal-corners warns, mm. Default 0.5.
min_wall_mmnumberInjection molding: thinnest allowed wall, mm. Default 1.
nozzle_mmnumberFDM nozzle diameter, mm. Default 0.4.
printerstringFDM printer profile id for the bed-fit check. Default 'generic-fdm'.
processesarrayOverride the process checks for every part. When omitted, declared assembly-part processes select fdm ('3d-print'), cnc, or sheet-metal ('sheet-cut'); undeclared parts and non-assembly models default…
pull_directionstringInjection molding: part-local mold-opening axis (the two halves separate along ±this). Default '+z'.
tool_diameter_mmnumberCNC end-mill diameter, mm. Default 6.

price_part Price Part

Start or read the real price for making the part. Cheap. Returns status "ready" with estimate_cents and summary, or "pricing" while the makers are asked (call again in a few seconds). Creates nothing and charges nothing.

ParameterTypeDescription
methodobjectHow the part should be made. Propose it from the user's words and the part (flat sheet: laser_cut or sheetmetal; metal block: cnc; plastic: fdm_print or resin_print).
slugstringSaved project slug (from open_in_studio or a /p/<slug> link). Send slug or source, not both.
sourcestringThe kernelCAD script, when the part is not saved. Send slug or source, not both.
wait_for_pricebooleanFor polling clients: false returns pricing immediately rather than waiting for the quote.

order_part Order Part

Order the part made: creates the production request and returns a pay_url for the user. Propose the manufacturing method from the user's words and the part, pass it as method with a one-line reason. The price is the real maker price; never invent or send one. Tell the user the card is only held, and a person confirms the final price before charging. If the result is status "pricing", the price is still being worked out: call again in a few seconds.

ParameterTypeDescription
methodobjectHow the part should be made. Propose it from the user's words and the part (flat sheet: laser_cut or sheetmetal; metal block: cnc; plastic: fdm_print or resin_print).
slugstringSaved project slug (from open_in_studio or a /p/<slug> link). Send slug or source, not both.
sourcestringThe kernelCAD script, when the part is not saved. Send slug or source, not both.
wait_for_pricebooleanFor polling clients: false returns pricing immediately rather than waiting for the quote.

hardware_pack Build with LabWired and KernelCAD

Plan one device across KernelCAD and LabWired. Read-only: returns companion tool names, project/revision links, the electronics-to-mechanics handoff, and a device review link for API clients. The viewer uses Order as its only purchase action. Use for robots, enclosures, PCB mounts or any hardware with electronics and mechanical parts. Optional slug resolves an accessible saved KernelCAD project; pass version to pin an immutable CAD revision, otherwise its current revision is used. Optional labwired_project/labwired_revision preserves its electronics reference. No purchase, payment, account lin…

ParameterTypeDescription
labwired_pcbstringLabWired PCB board id, including PCB-only handoffs.
labwired_pcb_revisionintegerPCB revision paired with labwired_pcb.
labwired_projectstringLabWired project id returned by LabWired; a reference, not authorization.
labwired_revisionstringLabWired content hash/revision returned by LabWired.
labwired_sharestringLabWired share/lab id for an unsaved lab; use this or labwired_project.
slugstringSaved KernelCAD project slug; current revision is read with existing project permissions.
versionintegerImmutable KernelCAD revision to preserve. Requires slug; omitted means current revision.

search_tools Search Tools

Find kernelCAD tools that are not in the advertised list. Returns matching tool definitions (name, title, description, inputSchema); run one with call_tool({ name, arguments }). Example queries: "assembly mate", "nurbs surface", "stress analysis", "find a bearing part". Tools available this way: review_paint_peek_latest, get_latest_render, mesh_summary, report_need, netlist_export, netlist_query, erc_run, search_assets, get_asset, get_asset_pack, diff_scripts, why_did_this_fail, set_param, add_feature, add_surface, add_curve, add_path_segment, trace_from_image, add_variable_sweep, add_text, pr…

ParameterTypeDescription
query *stringKeywords describing the capability you need (e.g. "assembly mate", "nurbs surface", "export stl").
limitintegerMaximum number of tools to return (default 8).

call_tool Run Tool

Run any kernelCAD tool by name. Use it when a tool description or a tool result tells you to call a tool that is not in your tool list (for example repair_script, execute_cookbook, trace_from_image or run_fea), and for tools found with search_tools. Pass the tool name and its arguments object as that tool's inputSchema describes; search_tools returns the schema. The result is the tool's own result.

ParameterTypeDescription
name *stringTool name, as returned by search_tools.
argumentsobjectArguments for that tool (its inputSchema).