Update Beaver Builder Module Content
Changes the text, rich text, code or link fields of one Beaver Builder module (a heading's text, a button's label and link, a text editor's content). Only the module's own declared content fields can be set; every other setting and every other node stays exactly as it was, and the change is refused if that cannot be proven. Changes the draft layout only, unless publish is true, which also applies it to the published page visitors see. Reversible: a backup is kept and the previous values are returned. Get the node_id and the field names from mosmcp/beaver-read-layout (with node_id).
Also known as: edit Beaver Builder text, change heading, change button text, update page copy.
| Property | Value |
|---|---|
| Ability slug | mosmcp/beaver-update-module-content |
| Wire tool name | mosmcp__beaver-update-module-content |
| 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: true · 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. |
| node_id | string (min length 1; max length 64) | Yes | — | The module's node ID, from mosmcp/beaver-read-layout. |
| content | object | Yes | — | Field name => new text, for example {"heading": "Welcome"}. Field names are the keys of the module's "content" in mosmcp/beaver-read-layout. |
| 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 |
|---|---|---|---|
| node_id | string | Yes | |
| module_type | string | ||
| previous | object | Yes | The values before the change. |
| current | object | Yes | The values now stored in the 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 >> |
|---|---|
| Read Beaver Builder Layout | Update Beaver Builder Module Style |
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.