Preview Rendered Elementor Layout


Renders an Elementor layout to the markup a visitor would receive, so a change can be checked rather than assumed. Render the whole post, or pass an element_id to render just that element. Ask for the text format to read the copy without the markup around it.

Also known as: preview the Elementor page, see how it looks, check the rendered layout.

Property Value
Ability slug mosmcp/elementor-render-preview
Wire tool name mosmcp__elementor-render-preview
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: true

 

Input schema

Field Type Required Default Description
id integer (min 1) Yes — The ID of the post or page to render.
element_id string — Optional. Render only this element instead of the whole layout, which keeps the response small when checking a single edit.
format string (one of html, text) html Return the rendered HTML, or plain text with the markup stripped for reading the copy.
include_css boolean false Include the layout's generated CSS alongside the markup. Only applies when rendering a whole post.
max_bytes integer (1000–500000) 120000 Maximum output size. Larger output is cut off and flagged as truncated.

 

Output schema

Field Type Required Description
id integer Yes
title string
element_id string The element rendered, or empty when the whole post was rendered.
scope string Yes Either "post" or "element".
format string Yes
output string Yes The rendered markup or text.
bytes integer Yes
full_bytes integer Size before any truncation.
truncated boolean
includes_css boolean
rendered_element_ids string[] Element IDs found in the output, for matching the rendering back to the elements that produced it.
view_url string
warnings object[] Non-fatal issues encountered while running.
warnings[].code string
warnings[].message string
warnings[].context string

 

Example

Sample prompt
Show me what the hero section on my home page actually says now.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 329,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__elementor-render-preview",
    "arguments": {
      "input": {
        "id": 12,
        "element_id": "3f9a1c2",
        "format": "text"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 329,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 12,
      "title": "Home",
      "element_id": "3f9a1c2",
      "scope": "element",
      "format": "text",
      "output": "Built for growing teams",
      "bytes": 23,
      "full_bytes": 23,
      "truncated": false,
      "includes_css": false,
      "rendered_element_ids": [
        "3f9a1c2"
      ],
      "view_url": "https://example.com/",
      "warnings": []
    }
  }
}

 

Edge cases / errors

  • Output bigger than max_bytes (default 120000, max 500000) → cut off with truncated: true and an output_truncated warning.
  • Empty output (often builder mode not set) → rendered_empty warning; markup but no visible text → rendered_markup_only warning.
  • Element's widget unavailable → element_not_renderable; Elementor version without a server-side render method → render_unsupported.
  • Read-only: a widget that throws while rendering produces a render_error warning and partial output.

 


<< Previous Next >>
Patch Elementor Element Text Read Elementor Element

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.