bricks_apply_class_to_element
Apply or remove global CSS classes on single or multiple page elements. Use bulk operations to update class assignments across many elements in one call.
Instructions
Apply or remove global CSS classes on page elements. Supports single element or bulk operations.
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>"
},
"name": "bricks_apply_class_to_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID containing the element(s) | |
| class_id | No | Global class ID (for single operation) | |
| element_id | No | Element ID (for single operation) | |
| operations | No | Bulk operations: [{ element_id, class_ids: [...], action: "add"|"remove" }] |