flip
Mirror a selected layer or every layer horizontally or vertically across the canvas center to correct sprite orientation in Aseprite files.
Instructions
Mirror a layer, or every layer, across the canvas centre.
horizontal mirrors left and right: pixel x goes to width - 1 - x, whatever the cel's size and position, and cel content beyond the canvas edge is mirrored along. Without a layer every image layer is flipped, nested ones and locked ones included (as in the editor); this is refused when any of them is a tilemap. A named layer must not be locked. Linked cels are flipped once when all their frames are in the list and get their own copy otherwise. Slices are not moved.
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>",
"axis": "<axis>"
},
"name": "flip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | horizontal mirrors left-right, vertical mirrors top-bottom | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | No | Layer name or 'group/child' path; leave out for every layer | |
| frames | No | Frames: a number, "1-4", "1-4,7" or "all" (1-based) | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||