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-only
Elementor Page Builders elementor/get-page-structure

Returns 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.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.