bricks_generate_element
Generates a Bricks element JSON object from provided parameters, including type name, parent, children, and settings, with an auto-generated ID for immediate use.
Instructions
Generate a single Bricks element JSON from parameters. LOCAL helper — no API call. Returns a ready-to-use element object with auto-generated ID.
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>"
},
"name": "bricks_generate_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Element type name (e.g., "heading", "text-basic", "button", "container", "section") | |
| parent | No | Parent element ID or 0 for root (default: 0) | |
| children | No | Child element IDs (optional) | |
| settings | No | Element settings (merged with defaults for the element type) |