read_pixels
Read a frame or layer as an editable character map with a color legend, then send the rows back to write pixel changes in a single round trip.
Instructions
Pixels as a character map: {"legend": {char: colour}, "rows": [...]} ('.' = transparent).
Edit the rows and send them back with the map op: a read-edit-write round trip. Without
layer it reads the flattened frame. Region capped at 128x128.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| frame | No | ||
| layer | No | ||
| region | No |