apply_gradient_rect
Fills a rectangular area with a linear gradient between two colors. Specify start and end colors, orientation, and target layer or frame.
Instructions
Apply a linear gradient fill to a rectangle.
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": {
"filename": "<filename>",
"layer_name": "<layer_name>",
"frame_index": "<frame_index>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>",
"color_start": "<color_start>",
"color_end": "<color_end>"
},
"name": "apply_gradient_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| color_start | Yes | ||
| color_end | Yes | ||
| horizontal | No | ||
| create_if_missing | No |