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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| fill_type | No | ||
| layer_name | No | ||
| image_index | No |