get_font_variation_axes
Retrieve a font family's OpenType variation axes (e.g., wght, slnt, opsz) before setting variationSettings on Figma text styles; returns null for static families.
Instructions
Return the OpenType variation axes a font family exposes (e.g. wght, slnt, opsz), or null/variable:false for a static family. Use this before setting variationSettings on create_text / set_text_style / create_text_style. Requires Figma Desktop with Plugin API Update 138 (variable fonts).
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": {
"family": "<family>"
},
"name": "get_font_variation_axes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | Yes | Font family name, e.g. "Inter". |