Upload a custom font (TTF/OTF) from a URL
upload_fontDownloads a font file from a public URL and registers it under the font-family, weight and style you give; code templates then use exactly that in CSS. Only for fonts that are not on Google Fonts (those load by name). One file per weight and style. TTF or OTF up to 5 MB, static only: WOFF/WOFF2 and variable fonts are refused (the renderer cannot read them; download the static instance, e.g. Google Fonts "static" folder). Google Drive and Dropbox share links work. Shares the upload limits with upload_image.
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": {
"url": "<url>",
"family": "<family>"
},
"name": "upload_font"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the .ttf/.otf file, or a Google Drive / Dropbox share link. | |
| style | No | normal | |
| family | Yes | The font-family name CSS will use, e.g. "Brand Sans". | |
| weight | No |