flatten_sprite
Merge all visible sprite layers into one layer and drop hidden layers, simplifying export or editing as a single image.
Instructions
Flatten all visible layers into a single layer; hidden layers are dropped.
Like every whole-sprite change, it ignores layer locks.
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>"
},
"name": "flatten_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||