wp_elementor_remove_element
Removes a whole Elementor element and all of its children after saving the previous element as a private rollback snapshot. Only use when the user explicitly requested removing the whole Elementor widget/container. Ask the user for confirmation first and only call with confirm=true after approval.
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": {
"site_id": "<site_id>",
"post_id": "<post_id>",
"element_id": "<element_id>",
"scope": "<scope>",
"confirm": "<confirm>"
},
"name": "wp_elementor_remove_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Must be whole_element to confirm the intent is deleting the complete Elementor element, not nested rendered DOM. | |
| confirm | Yes | ||
| post_id | Yes | ||
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. | |
| element_id | Yes |