create_variable
Create color, number, text, or boolean variables in Figma collections to organize design tokens and maintain consistency across design systems.
Instructions
Create a new variable in a collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | Yes | Variable collection ID | |
| name | Yes | Variable name | |
| type | Yes | Variable type: COLOR, FLOAT, STRING, or BOOLEAN | |
| value | No | Initial value for the first mode. COLOR: hex e.g. #FF5733. FLOAT: number e.g. 16. STRING: text. BOOLEAN: true or false. |