Read texture pixels
bb_get_texture_pixelRead a rectangle of pixels from a texture to verify drawing results, returning rows of [r,g,b,a] values.
Instructions
Read a rectangle of pixels from a texture. Use this to verify what was drawn: it returns rows of [r,g,b,a].
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": {
"targets": "<targets>"
},
"name": "bb_get_texture_pixel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| targets | Yes |