create_variable
Create a design variable or token with a name, type, value, and optional mode values within a specified collection.
Instructions
Create a design variable/token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name (e.g. "primary-500", "spacing-md") | |
| collectionId | Yes | Collection ID | |
| type | No | Variable type | |
| value | Yes | Value (hex for COLOR, number for FLOAT, etc.) | |
| modeValues | No | Values per mode: { "Light": "#000", "Dark": "#fff" } |