Add a font
add_fontConverts an uploaded font file into a selectable font for all accounts, rejecting unsupported or duplicate font families before installation.
Instructions
Admins only: turn an upload (POST /api/upload with the file; .ttf, .otf, .woff, .woff2, up to 30 MB) into a font every account can pick. The family is read from the file, and a file the renderer cannot draw is refused, as is a family already installed (remove_fonts it first to replace it). Returns the font as list_fonts shows it.
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": {
"uploadId": "<uploadId>"
},
"name": "add_font"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadId | Yes | The upload holding the font file |