create_paint_style
Standardize colors by creating a reusable solid paint style in Figma's local styles using custom name and RGBA values.
Instructions
Create a reusable color/paint style (SOLID) in Figma's local styles.
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>",
"r": "<r>",
"g": "<g>",
"b": "<b>"
},
"name": "create_paint_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the style (e.g., 'Brand/Primary' or 'UI/Background') | |
| r | Yes | Red component (0-1) | |
| g | Yes | Green component (0-1) | |
| b | Yes | Blue component (0-1) | |
| a | No | Alpha/opacity (0-1, default 1) |