get_variable_defs
Retrieve a Figma document's local variables, including collections, modes, default mode IDs, variable types, and per-mode values with support for colors, aliases, and easing curves.
Instructions
Return the document's local variables as { collections, variables }. Each collection lists its modes and defaultModeId; each variable lists its resolvedType and valuesByMode (primitives, RGBA colors, { type: "VARIABLE_ALIAS", id } references to other variables, or — for an EASING variable — an easing curve { type, easingFunctionCubicBezier?, easingFunctionSpring? }).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_variable_defs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||