save_decoration
Save a proven 3D decoration to a reusable library, capturing its content, depth, mode, material, and processing pipeline so the same design can be applied to new models later.
Instructions
Save a proven decoration to the library for reuse on future models.
Captures the content file (heightmap, SVG, image), settings
(depth, mode, material), and processing pipeline from the
``.kiln_recipe.json`` sidecar so the exact same decoration can
be applied to new models with ``apply_decoration``.
:param name: Human-readable name (e.g. "Ash Portrait").
:param model_path: Path to the model that was just decorated.
:param content_type: Content type — ``photo``, ``svg``, ``qr``,
``text``, or ``auto`` (detect from file extension).
:param source_path: Path to the original input file (photo, SVG).
:param content_data: For QR: the data string. For text: the text.
:param depth_mm: Decoration depth in mm (0 = auto from recipe).
:param mode: ``emboss`` or ``deboss``. Omitted, the recipe
sidecar's mode is used when it has one, else ``emboss``.
:param image_style: Image processing style (coin, portrait, etc.).
Omitted, the recipe sidecar's style is used when it has one,
else ``auto``.
:param material: Material used (e.g. PLA, PETG). Omitted, the
recipe sidecar's material is used when it has one, else PLA.
:param tags: Comma-separated tags for filtering.
:returns: Dict with saved decoration details and library path.
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": {
"name": "<name>",
"model_path": "<model_path>"
},
"name": "save_decoration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ``emboss`` or ``deboss``. Omitted, the recipe sidecar's mode is used when it has one, else ``emboss``. | |
| name | Yes | Human-readable name (e.g. "Ash Portrait"). | |
| tags | No | Comma-separated tags for filtering. Default: "". | |
| depth_mm | No | Decoration depth in mm (0 = auto from recipe). Default: 0.0. | |
| material | No | Material used (e.g. PLA, PETG). Omitted, the recipe sidecar's material is used when it has one, else PLA. | |
| model_path | Yes | Path to the model that was just decorated. | |
| image_style | No | Image processing style (coin, portrait, etc.). Omitted, the recipe sidecar's style is used when it has one, else ``auto``. | |
| source_path | No | Path to the original input file (photo, SVG). Default: "". | |
| content_data | No | For QR: the data string. For text: the text. Default: "". | |
| content_type | No | Content type — ``photo``, ``svg``, ``qr``, ``text``, or ``auto`` (detect from file extension). Default: "auto". |