nucleo-fonts-import
Download a Google Fonts family and selected weights as local woff2 files for WordPress design tokens, replacing any existing import of that family.
Instructions
Downloads a Google Fonts family locally (woff2 in uploads) and makes it available to the tokens. Replaces the same family already imported. Network or format errors return ok false.
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": {
"family": "<family>",
"weights": "<weights>"
},
"name": "nucleo-fonts-import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | Yes | Family name, for example "Inter". | |
| italic | No | Downloads the italic variants instead of the regular ones. | |
| weights | Yes | Weights to download: multiples of 100 between 100 and 900, at most 9. |