create_decoration_preset
Create or version decoration presets on a branch, specifying pattern, target faces, depth, and optional image assets for 3D designs.
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>",
"pattern_id": "<pattern_id>"
},
"name": "create_decoration_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the preset. Must not be empty. | |
| 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 | Yes | 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. | |
| 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"`` or ``"custom_image"``. 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. |