fill_region
Replace cells in an ASCII grid with a character and colors, using flood fill or global matching.
Instructions
Fill a region with a character and colors. Can be contiguous (flood fill) or global (all matching cells).
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>",
"char": "<char>"
},
"name": "fill_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Starting X coordinate | |
| y | Yes | Starting Y coordinate | |
| char | Yes | Character to fill with | |
| color | No | Fill color | #FFFFFF |
| bgColor | No | Fill background color | transparent |
| contiguous | No | If true, only fills connected cells. If false, fills all matching cells. | |
| matchChar | No | Only fill cells that match the starting cell character | |
| matchColor | No | Only fill cells that match the starting cell color | |
| matchBgColor | No | Only fill cells that match the starting cell background |