elementor_page
Read, replace, or create Elementor page layouts by managing the _elementor_data JSON element tree, with automatic CSS regeneration and diagnostic warnings for unrecognized widget settings.
Instructions
Read or write an Elementor page. Actions: get (return the _elementor_data element tree + template type), set (replace _elementor_data for a page — pass the element tree as data, an array of sections/containers), create (make a new Elementor-editable page with optional data). Elementor stores layout as a JSON tree of elements; build with flexbox Containers (elType "container"), not deprecated sections. After set/create, Elementor CSS is regenerated automatically. set/create return settings_warnings ONLY when something looked wrong: a diagnostic (non-blocking) list of settings keys that no control on that widget/element recognises — a likely wrong control name (e.g. menu instead of nav_menu), worth checking against get_controls() but never a reason to assume the write failed.
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": {
"action": "<action>"
},
"name": "elementor_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The Elementor element tree (array of top-level elements). Each element: {id, elType, settings, elements}. | |
| title | No | For create. | |
| action | Yes | get | |
| status | No | publish | |
| post_id | No | ||
| template_type | No | e.g. wp-page, wp-post, header, footer, single, archive. |