Get published variables
get_published_variablesRetrieve published variable names from a Figma file via REST API. Returns raw published names without valuesByMode; requires enterprise and file_variables:read.
Instructions
GET /v1/files/{key}/variables/published — raw REST published names (no valuesByMode). Enterprise + file_variables:read. Prefer get_variable_defs.
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": {
"file": "<file>"
},
"name": "get_published_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) |