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.
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) |