create_variable
Create local variables in a Figma collection and set per-mode values for color, number, string, boolean, easing, or timing tokens, including animation curves and durations.
Instructions
Create a local variable in a collection and set values by mode. resolvedType: COLOR, FLOAT, STRING, BOOLEAN, EASING, or TIMING — EASING and TIMING hold motion easing curves and durations, letting a design system tokenize animation alongside color and spacing.
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": {
"collectionId": "<collectionId>",
"name": "<name>",
"resolvedType": "<resolvedType>"
},
"name": "create_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| scopes | No | ||
| description | No | ||
| collectionId | Yes | ||
| resolvedType | Yes | ||
| valuesByMode | No | ||
| valuesByModeEntries | No |