get_pixels_rect
Read a rectangular RGBA pixel region from an Aseprite cel as JSON, specifying filename, coordinates, width, height, layer, and frame. Retrieve precise pixel data for scripts and asset pipelines.
Instructions
Read a rectangular RGBA region from a cel as JSON.
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": {
"filename": "<filename>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "get_pixels_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| layer_name | No | ||
| frame_index | No |