read_pixels
Reads pixels from one cel as a palette-based character grid, with '.' representing transparency and the same layout used for drawing. Use it to inspect or copy exact pixel regions before edits.
Instructions
Read pixels of one cel as a character grid with a palette, in the same format draw_pixels takes. '.' is transparent. At most 16384 pixels per call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| frame | No | Frame index, from 0. Defaults to the current frame | |
| layer | No | Layer index, 0 is the bottom layer. Defaults to the current layer | |
| width | No | ||
| height | No |