design_to_gcode_pipeline
Turns a plain-language design brief into an STL, structural risk report, weight estimate, and sliced G-code in a single call.
Instructions
End-to-end pipeline: description → template → STL → analysis → GCode.
One-call pipeline that:
1. Searches templates for best match
2. Generates STL via OpenSCAD
3. Runs structural risk analysis
4. Estimates weight
5. Slices to G-code (if slicer available)
:param brief_id: 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.
:param description: Natural-language design description.
:param output_dir: Directory for output files (uses tempdir if empty).
:param material: Material the slice is set for -- temperatures, melt
rate and cooling -- and weighed as.
:param printer_model: Printer model for slicer profile lookup.
:param infill_percent: Infill percentage for weight estimation.
:returns: Dict with paths to SCAD, STL, G-code files, weight, risks.
:param placement: Where the part goes when the plate still holds the last
print: ``[x, y]`` in mm, a named region (``"front-left"``,
``"centre"``, …) or ``"keep"``. Omitted, an occupied plate refuses at
the slice step and lists the spots that would work.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.
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.
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": {
"description": "<description>"
},
"name": "design_to_gcode_pipeline"
}
}Input Schema
| Name | Required | Description | 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: "". | |
| material | No | Material the slice is set for -- temperatures, melt rate and cooling -- and weighed as. Default: "PLA". | |
| placement | No | Where the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``"front-left"``, ``"centre"``, …) or ``"keep"``. Omitted, an occupied plate refuses at the slice step and lists the spots that would work. | |
| output_dir | No | Directory for output files (uses tempdir if empty). Default: "". | |
| description | Yes | Natural-language design description. | |
| printer_model | No | Printer model for slicer profile lookup. Default: "". | |
| infill_percent | No | Infill percentage for weight estimation. Default: 20.0. |