create_typography_scale
Generate a text-style scale from a base size and ratio, with default or custom steps, and optionally create sample text nodes in a Figma frame to preview the scale.
Instructions
Create a text-style scale (caption/body/h3/h2/h1/display by default, or custom steps) from a baseSize and ratio: fontSize = base * ratio^offset. Can also create sample text nodes in a frame (createSampleFrame) spanning the steps. For variable fonts, pass variationSettings and optionally omit fontStyle.
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": "create_typography_scale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| steps | No | ||
| prefix | No | ||
| baseSize | No | ||
| fontStyle | No | ||
| fontFamily | No | ||
| lineHeight | No | ||
| parentNodeId | No | ||
| letterSpacing | No | ||
| lineHeightRatio | No | ||
| createSampleFrame | No | ||
| variationSettings | No | Variable-font axis values keyed by OpenType tag, e.g. { wght: 550 }. |