flatten_layers
Merge all layers of a sprite into a single layer to simplify editing or export.
Instructions
Flatten all layers in a sprite into a single 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": {
"filePath": "<filePath>"
},
"name": "flatten_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Sprite file | |
| savePath | No | Path to save |