create_paint_style
Create or update a named paint style in Figma from a hex color or bind it to a color variable, optionally targeting a specific file and collection.
Instructions
Create (or update by name) a paint style from a hex color or bound to a color variable.
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>"
},
"name": "create_paint_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | No | ||
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | Yes | ||
| variable | No | Color variable name/id to bind | |
| collection | No | Disambiguate `variable` by collection name or id | |
| description | No |