Read Elementor Layout


Lists the elements that make up a post or page built with Elementor, with each element's ID and its text, image and link values. Styling is omitted to keep the response small, and values longer than 500 characters are shortened; read one element in full with mosmcp/elementor-element-get. Use the element IDs from this list to edit specific parts of the layout.

Also known as: page builder, read the Elementor layout, inspect the page structure.

Property Value
Ability slug mosmcp/elementor-page-read
Wire tool name mosmcp__elementor-page-read
Category Elementor (mosmcp-elementor)
Plan Free

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
Minimum default role Contributor
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
id integer (min 1) Yes — The ID of the post or page whose Elementor layout should be read.
widget_type string — Optional. Return only elements of this widget or container type, for example "heading" or "container".
search string — Optional. Return only elements whose text, image or link values contain this string.
max_depth integer (min 0) — Optional. Return only elements at or above this nesting depth. Top-level containers are depth 0.
limit integer (1–1000) 150 Maximum number of elements to return.
offset integer (min 0) 0 Number of matching elements to skip, for paging through a large layout.
include_raw boolean false Also return the layout exactly as stored, including all styling. Needed only when the whole layout is going to be rewritten, since the summarised list above omits styling and cannot be written back. Large.

 

Output schema

Field Type Required Description
id integer Yes
post_type string
title string
elementor object
elementor.plugin_active boolean
elementor.pro_active boolean
elementor.version string
elementor.has_data boolean Whether this post carries an Elementor layout at all.
elementor.data_bytes integer
elementor.edit_mode string Empty means Elementor will not render the layout even though data exists.
elementor.template_type string
elementor.saved_version string
elementor.page_template string
elementor.edit_url string
nodes object[] Yes The matching elements, in document order.
nodes[].element_id string Elementor's own ID for this element. Pass it to the editing abilities.
nodes[].el_type string Structural type: container, section, column or widget.
nodes[].widget_type string Widget slug when this element is a widget, otherwise empty.
nodes[].title string Human-readable name of the widget type.
nodes[].path string Dot-separated index path of this element within the tree.
nodes[].depth integer
nodes[].child_count integer
nodes[].is_atomic boolean True for Elementor v4 atomic elements.
nodes[].editable boolean Whether this pack can change this element's content.
nodes[].content object Content values on this element, keyed by role: text, body, image, link.
returned integer Yes
matched integer Elements matching the filters, which may exceed the number returned.
total_elements integer Yes Total elements in the layout, before filtering.
has_more boolean
has_atomic boolean
element_counts object How many of each widget or container type the layout contains.
body_element_id string The element that most likely holds the article body — the text widget with the most prose in it. A hint for "rewrite the article text": use it as the element_id, or pick another from the list if it looks wrong. Empty when the layout has no text widget.
raw_elements object[] The layout exactly as stored, present only when include_raw was set. Suitable as input to the layout-write ability.
warnings object[] Non-fatal issues encountered while running.
warnings[].code string
warnings[].message string
warnings[].context string

 

Example

Sample prompt
Show me the headings and buttons on my Elementor home page.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 331,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__elementor-page-read",
    "arguments": {
      "input": {
        "id": 12,
        "widget_type": "heading"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 331,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 12,
      "post_type": "page",
      "title": "Home",
      "elementor": {
        "plugin_active": true,
        "pro_active": false,
        "version": "3.25.4",
        "has_data": true,
        "data_bytes": 24310,
        "edit_mode": "builder",
        "template_type": "wp-page",
        "saved_version": "3.25.4",
        "page_template": "elementor_header_footer",
        "edit_url": "https://example.com/wp-admin/post.php?post=12&action=elementor"
      },
      "nodes": [
        {
          "element_id": "3f9a1c2",
          "el_type": "widget",
          "widget_type": "heading",
          "title": "Heading",
          "path": "0/1",
          "depth": 1,
          "child_count": 0,
          "is_atomic": false,
          "editable": true,
          "content": {
            "title": "Welcome to Example Co."
          }
        }
      ],
      "returned": 1,
      "matched": 1,
      "total_elements": 34,
      "has_more": false,
      "has_atomic": false,
      "element_counts": {
        "container": 8,
        "heading": 5,
        "button": 3
      },
      "warnings": []
    }
  }
}

 

Edge cases / errors

  • Elementor not active → elementor_inactive.
  • Post has no Elementor layout → not an error: returns empty nodes with total_elements: 0 and a no_elementor_data warning.
  • Layout over 8 MB → elementor_data_too_large; stored JSON corrupt → elementor_data_unreadable (with advice not to re-save it in Elementor).
  • More matches than limit (default 150, max 1000) → has_more plus a more_elements_available warning; layout data without builder mode set → edit_mode_not_set warning.

 


<< Previous Next >>
Read Elementor Element Write Elementor Layout

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.