read_rows
Read a rectangular pixel region as one character per pixel plus a color legend, so you can inspect rows, edit a few pixels, and pass them back to redraw.
Instructions
Read a region as rows of characters plus a colour legend.
The compact way to read pixels: one string per row, one character per pixel, "." for transparent. The output can be edited and passed straight back to draw_rows (same rows and legend) to change a few pixels.
Args: filename: Aseprite file to read x: Left of the region (sprite pixels) y: Top of the region (sprite pixels) width: Region width height: Region height (width * height at most 16384) frame_index: Frame index starting at 1 layer_name: Read only this layer (or group); "" reads what is visible, all layers composited
Returns: JSON with x, y, width, height, rows and legend.
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": "read_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| layer_name | No | ||
| frame_index | No |