get_pixels_rect
Extract pixel color data from a rectangular region in an Aseprite file. Returns coordinates, hex, and RGBA values for each pixel.
Instructions
Read all pixel colors in a rectangular region.
Args: filename: Aseprite file to read x: Top-left x coordinate y: Top-left y coordinate width: Width of the region height: Height of the region layer_name: Layer to read from (uses active layer when empty) frame_index: Frame index starting at 1
Returns: JSON array of {x, y, hex, r, g, b, a} objects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| layer_name | No | ||
| frame_index | No |