gimp.fill_rect
Fill a rectangular region on a GIMP drawable using the foreground color. Provide coordinates, width, and height to paint a solid rectangle.
Instructions
Fill a rectangular region on a drawable using the foreground color.
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": {
"image_id": "<image_id>",
"drawable_id": "<drawable_id>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "gimp.fill_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_id | Yes | ||
| drawable_id | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| color | No | CSS color string, [r,g,b], [r,g,b,a], or {r,g,b,a}. |