Add a container or section
elementor_add_containerInsert a flexbox container, section, or column into an Elementor page and optionally seed it with child elements in one call.
Instructions
Insert a structural element — a flexbox container (the modern default), or a section/column for pages built the classic way. Containers are what you put widgets inside. You can seed it with child elements in one call.
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>"
},
"name": "elementor_add_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Configured site name. Omit to use the default site. | |
| elType | No | container is the modern flexbox element; section/column are the legacy layout pair. Container is not available on every site — check containerAvailable in elementor_site_status before building a layout around it. | container |
| postId | Yes | WordPress post ID of the Elementor page, post or template. | |
| children | No | Optional child element nodes to place inside it. | |
| position | No | append/prepend place the element inside the target; before/after place it as a sibling of the target. | append |
| settings | No | Elementor control values keyed by control name. Call elementor_get_widget_schema for the valid keys of a widget. Responsive variants use _tablet and _mobile suffixes, e.g. padding_tablet. | |
| targetId | No |