figma_create_variable
Create Figma variables of type COLOR, FLOAT, STRING, or BOOLEAN via REST API, no plugin needed. Specify file key, collection, name, and optional values.
Instructions
Create a variable (COLOR, FLOAT, STRING, BOOLEAN). Uses REST API — no plugin required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | No | Value for the default mode | |
| scopes | No | ||
| fileKey | Yes | File key or Figma URL | |
| description | No | ||
| collectionId | Yes | ||
| resolvedType | Yes | ||
| valuesByMode | No | Values keyed by mode ID, e.g. {"modeId1": "#ff0000", "modeId2": "#0000ff"} |