Add Element
elementor_add_elementInsert a new container or widget into a target Elementor container at a specified position, creating it with initial settings and returning the new element ID.
Instructions
Add a new element (container or widget) into a target container. Creates the element with specified settings and inserts at the given position. Returns the new element's auto-generated ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"postId": "<postId>",
"containerId": "<containerId>",
"elType": "<elType>"
},
"name": "elementor_add_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elType | Yes | Element type: 'container' for layout, 'widget' for content | |
| postId | Yes | WordPress post/page ID | |
| position | No | Insert position (0-based index). Omit to append at end. | |
| settings | No | Initial settings for the new element | |
| widgetType | No | Widget type (required when elType='widget'). E.g. heading, text-editor, image, html, button, video | |
| containerId | Yes | Target container element ID to insert into |