generate_from_template
Create printable 3D models from parametric templates by specifying a template ID and parameters. Renders OpenSCAD locally into STL with interactive 3D preview.
Instructions
Generate a 3D model from a parametric template with explicit parameters (local, no AI API).
Use when you know which template and parameter values to use. For AI-assisted
parameter inference + structural analysis, use ``smart_generate_from_template``.
Renders the template's OpenSCAD code with custom parameter values
into a printable STL. Use ``list_design_templates`` to see
available templates and their parameters.
When the kiln-pro package is installed (Pro+ tier), the result MAY
carry an ``intent`` block describing the geometric assertions the
template parameters implied, and a sidecar ``<mesh>.intent.json``
is written next to the produced STL. Free / public installs see
the result unchanged. See https://kiln3d.com for tier details.
Args:
template_id: Template ID from ``list_design_templates``.
parameters: Optional dict of parameter overrides
(e.g., ``{"phone_width": 80, "angle": 70}``).INLINE 3D STAGE: on success this tool also 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | No | ||
| template_id | Yes |