Get font CSS
get_font_cssUse this when the person wants to use fonts on a web page, in an app or in a design tool that takes CSS. ids are 1 to 4 family ids, like "lora" or "space-mono". weights are 100 to 900; each family gets the ones it has, its regular and bold when left out. italic adds the italic of each weight a family has. Not for downloading font files to install on a computer. Answers one stylesheet link from cdn.onlyfonts.ai that loads every family asked for, the same as an @import line, and each family's font-family line with a fallback.
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": {
"ids": "<ids>"
},
"name": "get_font_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | 1 to 4 family ids | |
| italic | No | ||
| weights | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| link | Yes | ||
| import | Yes | ||
| families | Yes |