Manage Style
style_manageCreate or update named Figma styles for paints, text, effects, and grids. To modify an existing style, pass its styleId and currentStyleName from style_list.
Instructions
Create a named style (paint/text/effect/grid), or update an existing one when styleId is given. UPDATE requires currentStyleName.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Style name. Must be non-empty when supplied. REQUIRED for CREATE; omit it on UPDATE to leave the current style name unchanged. | |
| type | Yes | Type of style to create or update | |
| styleId | No | ID of the style to update (if not creating a new one) | |
| properties | No | Style properties to set; which subset applies depends on `type` (TEXT/PAINT/EFFECT/GRID). | |
| description | No | Description of the style | |
| bindVariables | No | Map of field names to variable IDs (to bind) or null (to unbind). For PAINT styles, valid fields include 'color'. For TEXT styles, fields include 'fontSize', 'fontFamily', etc. | |
| currentStyleName | No | REQUIRED for UPDATE when styleId is supplied — the style's **current exact** name, passed back verbatim from `style_list` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the style | |
| name | No | Name of the style | |
| type | No | Type of the style | |
| error | No |