Duplicate Divi Module


Clones a module — a single module, a whole row, or a whole section, along with anything nested inside it — and inserts the copy immediately after the original, in the same parent. This is the supported way to "add a new piece": duplicate an existing, already-valid module, then use divi-element-set-content to change its content.

Property Value
Ability slug mosmcp/divi-element-duplicate
Wire tool name mosmcp__divi-element-duplicate
Category Divi (mosmcp-divi)
Plan Pro

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
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 post or page.
module_index integer (min 0) Yes — The module index to duplicate (see mosmcp/divi-page-read).
expected_modified string — Optional. The "modified" value from a previous read. The edit is refused if the post changed since then.
dry_run boolean false If true, computes and returns what would change without saving anything.
skip_cache_clear boolean false Optional. Skip clearing Divi's static CSS cache for this post after the write. Defaults to false (cache is cleared, matching prior behavior).

 

Output schema

Field Type Required Description
post_id integer Yes
title string
modified string New modified timestamp, usable as expected_modified on a following edit. Unchanged from the pre-write value when dry_run was set.
changes object[] Yes What actually changed, or — when dry_run was set — what would change. A request that would change nothing is refused rather than reported as empty.
changes[].action string
changes[].source_index integer
changes[].new_module_index integer
changes[].tag string
dry_run boolean True when this was a dry run: "changes" describes what would happen, but nothing was saved.
view_url string
edit_url string
warnings object[] Non-fatal issues encountered while running.
warnings[].code string
warnings[].message string
warnings[].context string

 


<< Previous Next >>
Delete Divi Module Edit Divi Module Content

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.