fill
Flood fill a pixel art canvas from a starting point with a color. Returns the updated grid for verification.
Instructions
Flood fill from a point on a canvas. Returns the updated grid so you can verify the result.
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": {
"canvas_id": "<canvas_id>",
"x": "<x>",
"y": "<y>",
"color": "<color>"
},
"name": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Start X | |
| y | Yes | Start Y | |
| color | Yes | Hex char 0-F or "." for transparent | |
| canvas_id | Yes | Canvas ID |