create_gradient_style
Generate gradient style variables in Figma with specified properties such as type, color stops, and opacity. Use this to define and manage custom gradient designs efficiently.
Instructions
Creates one or more gradient style variables in Figma.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the created gradient(s) ID(s) or a summary.
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": {
"gradients": "<gradients>"
},
"name": "create_gradient_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gradients | Yes | One or more gradient style definitions to create. Can be a single object or an array. |