merge_layer_down
Merges a layer into the layer below it within the same group across every frame, using unlocked image layers and returning the merged layer path.
Instructions
Merge a layer into the one below it in the same group, in every frame.
Both must be image layers (not groups or tilemaps) and neither may be locked. The layer is merged even when hidden. Returns the path of the merged layer.
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": {
"path": "<path>",
"layer": "<layer>"
},
"name": "merge_layer_down"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||