boolean_mesh_op
Combine, subtract, or intersect two or more STL meshes using CSG boolean operations to cut holes, merge parts, or build complex shapes from simple primitives.
Instructions
Perform a CSG boolean operation on two or more STL meshes.
Uses OpenSCAD's boolean engine to compute:
- **union**: combine multiple bodies into one
- **difference**: subtract subsequent bodies from the first
- **intersection**: keep only the overlapping region
Requires OpenSCAD installed on the system.
**Use cases:**
- Subtract a cylinder from a block to create a hole
- Combine multiple parts into a single printable body
- Create complex shapes from simple primitives
:param operation: ``"union"``, ``"difference"``, or ``"intersection"``.
:param file_paths: List of STL file paths (minimum 2).
:param output_path: Output path (defaults to a temp file).
:returns: Dict with result path, operation, and triangle count.INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>",
"file_paths": "<file_paths>"
},
"name": "boolean_mesh_op"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ``"union"``, ``"difference"``, or ``"intersection"``. | |
| file_paths | Yes | List of STL file paths (minimum 2). | |
| output_path | No | Output path (defaults to a temp file). Default: "". |