Get Bricks Element
Returns one Bricks element in full: its type, label, parent, ancestors, children and every stored setting, plus its editable content (in the exact fields mosmcp/bricks-update-element-content accepts), which content is bound to dynamic data, and which style settings it has. Read-only. Get element IDs from mosmcp/bricks-read-page-structure.
Also known as: inspect Bricks element, element settings, element controls.
| Property | Value |
|---|---|
| Ability slug | mosmcp/bricks-get-element |
| Wire tool name | mosmcp__bricks-get-element |
| Category | Bricks Builder (mosmcp-bricks) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| post_id | integer (min 1) | Yes | — | ID of the page, post or Bricks template. |
| area | string (one of content, header, footer) |
— | Which Bricks area of the post: content (default), or the header or footer stored on it. Header and footer templates default to their own area. | |
| element_id | string (min length 1) | Yes | — | The element ID, six letters and digits (see mosmcp/bricks-read-page-structure). |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | |
| title | string | ||
| post_type | string | ||
| view_url | string | ||
| builder_url | string | Opens the post in the Bricks builder. | |
| area | string | Yes | |
| layout_hash | string | Yes | |
| element | object | Yes | |
| element.id | string | ||
| element.name | string | ||
| element.label | string | ||
| element.parent_id | string | "0" for a top-level element. | |
| element.ancestor_ids | string[] | Parent first, up to the top level. | |
| element.children | string[] | ||
| element.settings | object | Every stored setting, exactly as Bricks stores it. | |
| element.is_component_instance | boolean | Component instances cannot be edited here; edit the component in the Bricks builder. | |
| content | object | Yes | Editable content in the fields mosmcp/bricks-update-element-content accepts (text, tag, link_url, link_new_tab, image_id, alt_text, label, as the element type allows). |
| content_fields | string[] | The content fields this element accepts. | |
| dynamic_fields | string[] | Content fields bound to dynamic data or a post link; replacing them needs overwrite_dynamic_data. | |
| style_keys | string[] | Style settings the element has, for mosmcp/bricks-update-element-styles. |
| << Previous | Next >> |
|---|---|
| Insert Bricks Element |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.