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.
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": {
"path": "<path>"
},
"name": "read_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| frame | No | ||
| layer | No | ||
| region | No |