aseprite_edit
Apply pixel art, selections, transforms, layer/frame edits, palette changes, and tilemaps to a live RGB/Indexed document in one atomic undoable batch, rolling back on error.
Instructions
Edit a live RGB or Indexed document in one undoable transaction. Paint pixels/rectangles/lines/pixel_art inside the active selection; select rectangles, all, clear or invert; transform a cel or selection by clockwise angle, nearest-neighbor scale/flip/offset; manage layers/frames/tags and delete layers/frame ranges. Indexed accepts hex colors (exact match or append to palette) or 0-based indices. set_palette_color recolors every pixel using that index. add_tilemap creates a native tilemap; set_tile adds/replaces shared tile artwork (. is transparent); place_tiles uses grid cell coordinates and tile IDs (0 erases), requires no pixel selection. Inspect tile IDs with aseprite_tilemap. Locked layers are protected. Ordinary painting/transforms require transparent image layers. Use separate tile operations for tilemaps. Frames are 1-based. All operations roll back together on error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Codex edit | |
| documentId | Yes | Exact document ID returned by inspect/create; never guess it. | |
| operations | Yes | ||
| expectedRevision | Yes | Revision from the most recent inspect or edit result. Re-inspect if stale. |