fill_selection
Fill the current selection with a CSS color, hex value, rgb() string, or a foreground, background, or transparent fill type on a chosen layer.
Instructions
Fill the current selection with a color or fill type.
Parameters:
color: Fill color as CSS name, hex, or rgb() string (used when fill_type is omitted)
fill_type: Fill type override: "foreground", "background", or "transparent"
image_index: Target image index (default 0)
layer_name: Target layer; defaults to active layer
Returns status dict.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fill_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| fill_type | No | ||
| layer_name | No | ||
| image_index | No |