fill_rect
Fill a rectangular area with a specified color on a chosen layer and frame; omit position and size to fill the whole canvas.
Instructions
Fill a rectangle with one color. Leave out the position and size to fill the whole canvas.
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": {
"color": "<color>"
},
"name": "fill_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| color | Yes | Color as #rgb, #rrggbb, #rrggbbaa, a name like "red", "transparent", or "@n" for slot n (from 0) of the selected palette | |
| frame | No | Frame index, from 0. Defaults to the current frame | |
| layer | No | Layer index, 0 is the bottom layer. Defaults to the current layer | |
| width | No | ||
| height | No |