flood_fill
Fill a contiguous area of matching pixels from a seed point with a new color in one undoable action. Use for bucket fills without affecting neighboring regions.
Instructions
Fills a contiguous area of matching pixels starting from (x, y) with color in a single undo transaction.
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": "flood_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Seed point X | |
| y | Yes | Seed point Y | |
| color | Yes | New fill color (hex) | |
| layerName | No | ||
| tolerance | No | Color tolerance (0-255) | |
| layerIndex | No | ||
| frameNumber | No | ||
| returnPreview | No |