add_layer_to_icon
Add an image as a new layer to an existing .icon bundle. Optionally create a new group and adjust opacity, scale, offset, blend mode, and glass effect.
Instructions
Add a new layer to an existing .icon bundle. Creates a new group or adds to an existing one.
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": {
"bundle_path": "<bundle_path>",
"image_path": "<image_path>",
"layer_name": "<layer_name>"
},
"name": "add_layer_to_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glass | No | Participate in Liquid Glass effects | |
| scale | No | Layer scale | |
| opacity | No | Layer opacity | |
| offset_x | No | X offset in points | |
| offset_y | No | Y offset in points | |
| blend_mode | No | Blend mode | normal |
| image_path | Yes | Path to image file to add as layer | |
| layer_name | Yes | Name for the layer | |
| bundle_path | Yes | Path to existing .icon bundle | |
| group_index | No | Group index to add to (0-based, default 0) | |
| create_group | No | Create a new group for this layer |