bricks_build_page
Build a complete WordPress page by combining section presets and raw elements in a single request. Automatically creates a backup and regenerates CSS.
Instructions
Build a complete page from section presets and/or raw elements in a single request. Combines multiple sections into a full page layout. Automatically creates a backup before writing (plugin-side, cannot be skipped). THEME-FIRST: before generating raw elements, call bricks_get_theme_styles and bricks_list_global_classes — reuse existing tokens (button styles, utility classes, color palette) instead of inline styling. For buttons prefer settings.style: "primary"|"secondary" over manual _background/_typography. For links use the text-link element, not a styled text-basic.
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": {
"page_id": "<page_id>",
"sections": "<sections>"
},
"name": "bricks_build_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | WordPress page/post ID | |
| sections | Yes | Array of sections to build. Each can be a preset name or raw elements. | |
| regenerate_css | No | Whether to regenerate CSS (default: true) |