import_external_mesh
Import STL, OBJ, PLY, GLB, glTF, 3MF, or STEP files as a new design version and open an interactive 3D stage to orbit and inspect the result.
Instructions
Import external geometry (STL / OBJ / PLY / GLB / glTF / 3MF / STEP) as a first-class design version. Opens Kiln's interactive inline 3D stage on the result (orbit/zoom panel in MCP Apps hosts; hosted sessions add a browser stage link). MAKE DOORS: design_session, Kiln's front door for making an object, is not installed here (signed in to Kiln it runs on Kiln's servers). On this install compile_scad IS the make → preview → iterate loop: make it, show the preview, iterate.
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": {
"design_id": "<design_id>",
"mesh_path": "<mesh_path>"
},
"name": "import_external_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-form notes attached to the version. Default: "". | |
| brief_id | No | The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: "". | |
| design_id | Yes | Target design (created implicitly). | |
| mesh_path | Yes | Path to the file to import: STL / OBJ / PLY / GLB / glTF / 3MF, or STEP / STP (converted on the way in; ``NO_BACKEND`` with a ``remedy`` when no converter is installed). | |
| branch_name | No | Branch to attach the import to (default ``main``). Created on the fly if absent. Default: "main". | |
| design_name | No | Display name; omitted, the ``design_id`` is used. | |
| source_attribution | No | Where the file came from (free text or a link), stored on the version for audit. A file Kiln downloaded or generated needs none: the note Kiln kept when it arrived (marketplace, designer and license, or generator and prompt) fills this in when it is left out. |