Get Elementor Page Structure is a WordPress ability from Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get Elementor Page Structure
Read-onlyReturns the full Elementor element tree (widgets, containers, and nested content) for a single Elementor-built post or page.
Requires the Elementor plugin plus its experimental 'Elementor MCP WP Abilities API' feature flag (e_wp_abilities_api), which is hidden and inactive by default and, per Elementor's own description, needs WordPress 7.0+ and an application password for the connecting agent. Each ability also checks the current user's capabilities (typically 'edit_posts', plus per-post 'edit_post' or the target post type's 'create_posts' capability) before running.
What it does
Given a post_id, this ability loads the corresponding Elementor document and returns its root-level elements array exactly as stored, covering all containers, widgets, and nested content. It validates that the post_id is a valid, existing Elementor document, that the document was actually built with Elementor, and that the current user is allowed to edit it — returning specific error codes (invalid_post_id, document_not_found, not_elementor, rest_cannot_view) when any check fails. Use it after list-pages once you know which document you need the live JSON layout for, so an assistant can reason about widget types or plan edits.
See it in action
You ask your AI assistant
"Get the Elementor structure for post ID 42 so you can tell me what widgets are on that page."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | WordPress post ID of the Elementor document. |
Returns
An object with an 'elements' array containing the root-level Elementor elements (containers/widgets and their nested content) for the document.
Permission
Requires the 'edit_posts' capability plus 'edit_post' capability on the specific post_id, and the document must be editable by the current user — otherwise a 403 error is returned.
More Elementor abilities
Create Elementor Page
Creates a new draft post or page and marks it as built with Elementor, giving you a blank canvas ready to design.
Get Elementor Globals
Returns site-wide Elementor design data from the active kit: shared global CSS classes and design-token variables such as colors and fonts.
List Elementor Pages
Lists the pages and posts on the site that were built with Elementor, so an assistant can discover existing documents before drilling into their structure.
Update Elementor Page Settings
Updates document-level Elementor settings (for example page layout, title visibility, or custom page settings) for a given post.