layer_set_gradient
Apply a gradient fill to an existing text or shape layer by layerId, specifying colors, angle, or preset for graphic design edits.
Instructions
Applies a gradient fill to an existing text or shape layer by layerId.
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": {
"layerId": "<layerId>"
},
"name": "layer_set_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Angle in degrees | |
| colors | No | ||
| preset | No | ||
| layerId | Yes | Target Layer ID |