create_paint_style
Create reusable paint styles from solid or gradient colors, organized with slashes in names. Apply saved styles to nodes or edit them later.
Instructions
Create a reusable local paint (color) style from SOLID or gradient paints (same shape as set_fills); use slashes in the name for folder grouping. Apply it to nodes with apply_style_to_node, or edit it later with update_paint_style. Returns { ok, styleId, name }.
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>",
"paints": "<paints>"
},
"name": "create_paint_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Style name, e.g. "Brand/Primary" | |
| paints | Yes | Paints | |
| description | No | Optional style description |