bricks_upload_font
Upload custom font files (WOFF2, WOFF, TTF, OTF) to WordPress Media Library and register them in Bricks Builder with generated @font-face CSS.
Instructions
Upload custom font files (.woff2, .woff, .ttf, .otf) and register them in Bricks Builder. Uploads to WordPress Media Library, registers the font, and generates @font-face CSS in Global CSS.
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": {
"name": "<name>",
"files": "<files>"
},
"name": "bricks_upload_font"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Font family name (e.g., "PP Neue Montreal", "Cabinet Grotesk") | |
| files | Yes | Array of font files with weight/style mapping. Provide either path or url per file. | |
| display | No | CSS font-display value (default: "swap") |