get_layer_pixels
Read pixel data from a layer slot as RGBA coordinates for read-modify workflows. Sample a region or filter to opaque pixels only, capping response size, without modifying the layer.
Instructions
Sample a region of design/layers/.png for read-modify workflows.
Returns pixels as [{x,y,rgba:[r,g,b,a]}, ...]. Caps response size; use a smaller region or opaque_only=true. Does not modify the layer.
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": {
"name": "<name>",
"slot": "<slot>"
},
"name": "get_layer_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | Yes | ||
| slot | Yes | ||
| width | No | ||
| height | No | ||
| plan_id | No | ||
| output_dir | No | ||
| opaque_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||