Create Gradient
create_gradientCreate linear or radial gradients with custom color stops and apply them as fills to selected objects by UUID, without bringing Illustrator to the foreground.
Instructions
Create a gradient in the document and optionally apply it to objects. Runs without activating Illustrator in default background mode; never invokes Computer Use.
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": {
"name": "<name>",
"stops": "<stops>"
},
"name": "create_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Gradient name | |
| type | No | linear | |
| angle | No | Gradient angle (for linear). Note: may not take effect due to a long-standing Illustrator bug (since 2008). | |
| stops | Yes | Gradient stops (minimum 2) | |
| apply_to_uuids | No | UUIDs of objects to apply this gradient as fill |