smart_decorate
Decorate STL models with text, images, or QR codes, automatically adjust depth for printability, and preview the result in an interactive 3D stage.
Instructions
Intelligent decoration with auto-fix for printability (Pro). Opens Kiln's interactive inline 3D stage on the result (orbit/zoom panel in MCP Apps hosts; hosted sessions add a browser stage link).
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": {
"model_path": "<model_path>",
"content": "<content>"
},
"name": "smart_decorate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| face | No | Which face to decorate. ``"auto"`` (default) picks the largest flat face; also ``"top"``, ``"bottom"``, ``"front"``, ``"back"``, ``"left"``, ``"right"``, a sketch-built part's own wall name (``"side:l2"``), or ``"wall"`` to wrap text or a line-art mark around the round wall of a cup, jar or vase. Default: "auto". | |
| mode | No | ``"deboss"`` (cut in, default) or ``"emboss"`` (raised). ``face="wall"`` is deboss only. Default: "deboss". | |
| scale | No | Share of the face the decoration covers, 0.0-1.0 (default 0.7). A QR too small to scan at this scale is enlarged. Default: 0.7. | |
| content | Yes | What to put on the surface: an image or SVG path, ``"text:..."`` for text, or ``"qr:..."`` for a QR code. | |
| depth_mm | No | Emboss/deboss depth in mm. 0 (default) picks a depth for *material*; a depth too shallow for it is raised and said. Default: 0.0. | |
| material | No | Material the depth is judged for (default ``"PLA"``). Default: "PLA". | |
| model_path | Yes | Path to the STL model to decorate. | |
| image_style | No | ``face="wall"`` only: ``"stencil"`` or ``"logo"`` to carve an image as a line-art mark; ``"auto"`` (default) tells a mark from a photo by looking. Default: "auto". | |
| offset_x_mm | No | Move the decoration across the face, in mm (default 0). Default: 0.0. | |
| offset_y_mm | No | Move the decoration along the face, in mm (default 0). Default: 0.0. | |
| content_type | No | ``"auto"`` (default, read from *content*), or ``"text"``, ``"qr"``, ``"svg"``, ``"image"``. Default: "auto". | |
| absolute_size_mm | No | ``face="wall"`` only: the size in mm instead of a share of the wall (letter height for text, width for a mark). 0 (default) uses *scale*. Default: 0.0. |