apply_gradient
Applies a multi-stop linear or radial gradient to named Illustrator items or the current selection, with color stops, opacity, angle, and optional swatch naming.
Instructions
Gradient Tool: Create and apply a multi-stop Linear or Radial gradient to named items (or the current selection).
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": {
"stops": "<stops>"
},
"name": "apply_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Optional rotation angle in degrees | |
| stops | Yes | At least 2 gradient color stops | |
| itemNames | No | Target item names (uses current selection if omitted) | |
| gradientName | No | Optional swatch name for the gradient | |
| gradientType | No | Linear or radial gradient | linear |