Script API
The kernelCAD script API, grouped by the task you're doing. Every page has an example you can edit and run.
- Start a shape The first call in any model: a solid primitive, or a 2D profile to extrude. 29 calls
- Add material Turn a profile into a solid, or grow one along a path. 6 calls
- Remove material Cut into a solid: bolt holes, pockets, slots, plain subtraction. 5 calls
- Combine shapes Merge or intersect solids, or group them without paying for a boolean. 6 calls
- Finish edges Break edges, add draft, hollow out a wall, fold sheet metal. 6 calls
- Select geometry Pick the edges or faces a feature acts on. Query inside OCCT first, then sort or group what comes back. 13 calls
- Place & transform Move a body into position, mirror it, or repeat it. 16 calls
- Assemble Build a mechanism from parts: connectors, mates, joints, posed Scenes. 5 calls
- Curves & surfaces NURBS curves and surfaces, plus the evaluators for measuring them before they become solids. 25 calls
- Measure & verify Ask the kernel what you actually built, and check it before shipping. 6 calls
- Parametrize Declare editable dimensions and do arithmetic on them (JS operators throw on a ParamRef). 8 calls
- Import & export Bring in vendor geometry, and write models back out. 2 calls
- Annotate & present Adjust a model's appearance without changing its geometry: text, color, lighting, camera, motion. 11 calls
Same tables in one file:
docs/cheat-sheet.md.
Agents should call lookup_api(query) over the MCP server.