fill_area
Flood-fills a contiguous same-color region at the given x,y coordinates with a chosen color, creating one undo step and optionally returning a before/after preview.
Instructions
Flood-fill the contiguous same-color region at (x, y). Most reliable on
RGB sprites. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
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": {
"x": "<x>",
"y": "<y>",
"color": "<color>"
},
"name": "fill_area"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| file | No | ||
| color | Yes | ||
| preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |