get_variable_defs
Retrieve variable definitions from a Figma file. Optionally scope the lookup to a specific node to get only relevant variables.
Instructions
Get variable definitions from a Figma file
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": {
"fileKey": "<fileKey>"
},
"name": "get_variable_defs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Optional node ID to scope variable lookup | |
| fileKey | Yes | Figma file key |