paint_fill
Fills a raster layer or active selection with solid color, flood color, linear/radial gradients, or transparency; use polygon points to constrain fills and gradients.
Instructions
Fill a raster layer (layer_id or active) within the selection, and within the polygon points when given (smooth=true: a curve through them) - a gradient for one shape needs no separate selection. Gradient start/end or flood point in document pixels; a gradient covers the whole allowed area (end colours continue beyond start/end). Opacity 0..1. Flood samples the target layer or merged painting. kind=clear erases the selection/polygon (or whole layer) to transparency; opacity<1 erases partially; clearing an alpha-locked layer is an error.
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": "paint_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| kind | No | solid | |
| color | No | ||
| point | No | ||
| start | No | ||
| color2 | No | #FFFFFF | |
| points | No | ||
| smooth | No | ||
| opacity | No | ||
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| tolerance | No | ||
| blend_mode | No | normal | |
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) | |
| sample_merged | No |