figma_create_variable
Create a variable in a Figma collection using the collection ID obtained from the variables list. Provide a name and type (color, float, string, boolean) to define the variable.
Instructions
Create a variable in a collection. Get collectionId from figma_get_variables.
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": {
"name": "<name>",
"collectionId": "<collectionId>",
"resolvedType": "<resolvedType>"
},
"name": "figma_create_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| options | No | ||
| collectionId | Yes | ||
| resolvedType | Yes |