create_text_style
Create a reusable text style or update an existing one by name, defining font family, size, case, line height, and letter spacing in a Figma file.
Instructions
Create (or update by name) a text style.
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": {
"name": "<name>",
"fontFamily": "<fontFamily>",
"fontSize": "<fontSize>"
},
"name": "create_text_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | Yes | ||
| fontSize | Yes | ||
| textCase | No | ||
| fontStyle | No | ||
| fontFamily | Yes | ||
| lineHeight | No | px number, '150%' or 'auto' | |
| description | No | ||
| letterSpacing | No | px number or '2%' |