Duplicate Elementor Element
Copies one element of an Elementor layout, along with anything nested inside it, and places the copy immediately after the original. The copy is given new element IDs so it can be edited independently. This is the reliable way to extend a repeating section such as a list of cards.
Also known as: copy an Elementor widget, duplicate a section, repeat a card.
| Property | Value |
|---|---|
| Ability slug | mosmcp/elementor-element-duplicate |
| Wire tool name | mosmcp__elementor-element-duplicate |
| Category | Elementor (mosmcp-elementor) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the post or page whose layout should be edited. |
| element_id | string (min length 1) | Yes | — | The Elementor element ID to copy, as reported when reading the layout. |
| expected_modified | string | — | Optional. The "modified" value from a previous read. The edit is refused if the post changed since then. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | |
| title | string | ||
| status | string | The post status, which these abilities never change. | |
| modified | string | New modified timestamp, usable as expected_modified on a following edit. | |
| changes | object[] | Yes | What actually changed. |
| changes[].action | string | Which structural change was made: delete, duplicate or move. | |
| changes[].element_id | string | The element affected. For a duplicate this is the new copy's ID. | |
| changes[].widget_type | string | ||
| changes[].detail | string | Plain-language description of what happened. | |
| view_url | string | ||
| elementor_url | string | ||
| warnings | object[] | Non-fatal issues encountered while running. | |
| warnings[].code | string | ||
| warnings[].message | string | ||
| warnings[].context | string |
Example
Sample prompt
Add another pricing card by copying the last one on my Pricing page.
Example request (json)
{
"jsonrpc": "2.0",
"id": 322,
"method": "tools/call",
"params": {
"name": "mosmcp__elementor-element-duplicate",
"arguments": {
"input": {
"id": 20,
"element_id": "a81c3de"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 322,
"result": {
"isError": false,
"structuredContent": {
"id": 20,
"title": "Pricing",
"status": "publish",
"modified": "2026-09-29 10:40:55",
"changes": [
{
"action": "duplicate",
"element_id": "b27f9e0",
"widget_type": "container",
"detail": "Copy of a81c3de placed right after it, with 4 nested elements."
}
],
"view_url": "https://example.com/pricing/",
"elementor_url": "https://example.com/wp-admin/post.php?post=20&action=elementor",
"warnings": []
}
}
}
Edge cases / errors
- The copy and everything nested in it get fresh element IDs, so they can be edited on their own.
- element_id not found → element_not_found; duplicated IDs in the layout → element_id_ambiguous.
- expected_modified older than the post → post_changed; save failure rolls back to the previous layout (elementor_save_failed).
| << Previous | Next >> |
|---|---|
| Delete Elementor Element | Edit Elementor Element 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.