Import a font
import_fontKeeps a font for this account (a TTF, OTF, WOFF or WOFF2 link or file, or an open catalog family) after checking its license allows embedding; write_graphic then draws it by family. Cost: Free.
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": "import_font"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https link to the font file (TTF, OTF, WOFF, WOFF2). | |
| data | No | Or the font file itself, base64. | |
| name | No | A file name to keep it under. | |
| family | No | Or a family from the open font catalog (Google Fonts, OFL), such as "Fraunces". | |
| italic | No | With family: the italic. | |
| weight | No | With family: 100 to 900 (400 when left out). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| state | No | ||
| status | No | ||
| dry_run | No | ||
| message | No | ||
| plan_id | No | ||
| style_id | No | ||
| video_id | No | ||
| available | No | ||
| import_id | No | ||
| output_id | No | ||
| studio_url | No | ||
| version_id | No |