create_variable
Create a new variable within an existing Figma variable collection by specifying its name, type, and collection ID.
Instructions
Create a new Variable in an existing Variable Collection.
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 | Variable name (use / for grouping, e.g. 'color/primary') | |
| collectionId | Yes | Variable Collection ID | |
| resolvedType | Yes | Variable type |