flood_fill
Fill connected pixels on the design layer from an (x,y) coordinate with a specified color. Use it to recolor enclosed regions of a pixel character; large fills generate a warning instead of altering the silhouette.
Instructions
Flood-fill connected pixels on the design layer from (x,y).
Optional. Do NOT flood the entire body silhouette as the sole outfit design — prefer fill_rect / paint_pixels / paint_from_commands for shapes. Large fills return a warning field.
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>",
"x": "<x>",
"y": "<y>",
"color": "<color>"
},
"name": "flood_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| name | Yes | ||
| slot | Yes | ||
| color | Yes | ||
| scale | No | ||
| plan_id | No | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||