Insert Beaver Builder Module


Adds a module (heading, text editor, button, photo, HTML, icon, and the other module types registered on this site) to a column, starting from Beaver Builder's own defaults for that module type, with optional content. Container modules and the Widget module must be added in the Beaver Builder editor. Adds to the draft layout only, unless publish is true. A backup of the previous layout is kept. Get column IDs from mosmcp/beaver-read-layout or mosmcp/beaver-insert-row.

Also known as: add a heading, add text, add a button, add a module.

Property Value
Ability slug mosmcp/beaver-insert-module
Wire tool name mosmcp__beaver-insert-module
Category Beaver Builder (mosmcp-beaver-builder)
Plan Pro

 

Required access

Requirement Value
Capability edit_posts
Minimum default role Contributor
Annotations readOnly: false · destructive: false · idempotent: false · openWorld: false

 

Input schema

Field Type Required Default Description
post_id integer (min 1) Yes — The ID of the page or post built with Beaver Builder.
column_id string (min length 1; max length 64) Yes — The column to add the module to (a node of type "column").
module_type string Yes — Module type slug, for example heading, rich-text, button, photo, html, icon, callout, cta. An unknown type is refused with the list of valid ones.
content object — Optional content field => text, for example {"heading": "Hello"} or {"text": "<p>Hi</p>"}.
position integer (min 0) — Optional. Where in the column, counting from 0. Omit to add at the end.
label string — Optional name for the module, shown in Beaver Builder's outline.
expected_hash string — Optional but recommended: layout_hash from your last mosmcp/beaver-read-layout. The change is refused if the page changed since.
publish boolean false false (default): change only the draft; visitors see nothing until the draft is published in Beaver Builder. true: also apply this one change to the published page now (other unpublished draft changes stay unpublished).

 

Output schema

Field Type Required Description
module_id string Yes
module_type string Yes
module_name string
column_id string
position integer
content object
confirmed boolean Whether the new module reads back from the stored draft.
post_id integer Yes
title string
layouts string[] Yes Which layouts were changed: draft, and published when publish was true.
published boolean Yes
layout_hash string Yes The new hash, usable as expected_hash on a following edit.
cache_cleared boolean
builder_on boolean
backup object Yes
backup.backup_id string
backup.stored_in string
backup.restore string
edit_url string
view_url string
notes string[]

 


<< Previous Next >>
Insert Beaver Builder Row

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.