Wrap an element in a container
elementor_wrap_elementWraps an existing Elementor element in a new container in place, enabling background, padding or width constraints without rebuilding the element.
Instructions
Put a new container around an existing element, in place. Useful for adding a background, padding or width constraint around something without rebuilding it.
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>",
"elementId": "<elementId>"
},
"name": "elementor_wrap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Configured site name. Omit to use the default site. | |
| postId | Yes | WordPress post ID of the Elementor page, post or template. | |
| elementId | Yes | Elementor element id, as returned by elementor_get_outline. | |
| wrapperType | No | container | |
| wrapperSettings | No | Settings for the new wrapping container. |