create_decoration_preset
Create or version a decoration preset on a branch so textures, logos, or text embossing reproduce identically each time the preset is applied. Requires Kiln Pro.
Instructions
Create or version a decoration preset on a branch.
Needs Kiln Pro.
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>",
"pattern_family": "<pattern_family>"
},
"name": "create_decoration_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | Font for a text decoration: ``"sans"`` (default), ``"mono"``, ``"fredoka"`` (rounded), ``"zilla-slab"`` (slab), ``"oswald"`` (tall and narrow) or ``"saira-stencil"`` (stencil). The preset records it, so the word is carved in the same font every time it is applied. A font not on the list is refused naming the list. Refused for a family that is not text. Default: "". | |
| name | Yes | Display name for the preset. Must not be empty. | |
| text | No | The words of a text decoration, one line of at most 80 characters. Required for a text family and refused for any other. The reply's ``preset`` repeats it as ``text``. Default: "". | |
| notes | No | Free-form editorial note stored on the version. Omit it for none. Default: "". | |
| depth_mm | No | Emboss or deboss depth in millimetres. Defaults to ``1.2``; a value outside 0.05 to 5.00 mm is refused. Default: 1.2. | |
| design_id | No | Id of the design the preset belongs to. Omit it for a portfolio-wide preset usable on any design. | |
| preset_id | No | Id of an existing preset to add a new version to. Omit it to create a new preset at version 1; an id that does not exist is refused. | |
| created_by | No | Author label stored on the version as given. Omit it to record the computer's user name. | |
| pattern_id | No | Which pattern within the family, e.g. ``"wave"`` or ``"hex_grid"``, or for an image family a content hash or asset file name. Must not be empty, except for a text family, where it is left out and ``text`` is passed instead. Default: "". | |
| branch_name | No | Branch the new version lands on, created if absent. Defaults to ``main``. Default: "main". | |
| pattern_family | Yes | The kind of decoration: ``"procedural_texture"``, ``"photo_emboss"``, ``"photo_deboss"``, ``"logo_emboss"``, ``"logo_deboss"``, ``"brand_asset"``, ``"custom_image"``, ``"text_deboss"`` (a word cut into the surface) or ``"text_emboss"`` (a word raised from it). Any other value is refused. | |
| image_asset_path | No | Path to the source image for an image family. The file is copied into Kiln's own asset store so the preset does not depend on it staying where it is. Omit it to save the preset before the image is attached. | |
| selected_face_ids | No | The face ids to decorate. Required (and non-empty) when ``surface_selection`` is ``"selected_faces"``; dropped for any other selection. | |
| surface_selection | No | Which faces of a host mesh receive the decoration: ``"all_faces"``, ``"outer_faces"`` (default), ``"vertical_walls"``, ``"horizontal_caps"`` or ``"selected_faces"``. Default: "outer_faces". | |
| image_asset_sha256 | No | SHA-256 of the image, its identity across renames. Omit it to have it computed from ``image_asset_path``. | |
| posterization_tier | No | Optional posterize tier, an integer from 1 to 8; outside that range is refused. Omit it for none. | |
| parent_preset_version_id | No | The preset version this one was forked from, recorded for ancestry. Omit it for a root version. |