fill_rectangle
Fills a specified rectangular area with a solid color using x/y coordinates, width, height, and color, with optional target layer and image index.
Instructions
Fill a rectangular region with a solid color.
Parameters:
x, y: Top-left corner
width, height: Rectangle dimensions
color: Fill color (CSS name, hex, or rgb() string)
layer_name: Target layer; defaults to active layer
image_index: Target image index (default 0)
Returns status dict.
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>",
"width": "<width>",
"height": "<height>",
"color": "<color>"
},
"name": "fill_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| color | Yes | ||
| width | Yes | ||
| height | Yes | ||
| layer_name | No | ||
| image_index | No |