Validate Page Layout is a WordPress ability from Page Builder: Pagelayer – Drag and Drop website builder — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Validate Page Layout

Read-only

Run Pagelayer's full AI validation suite against a page — widget compatibility, hierarchy, accessibility, SEO heading structure, and global-style token usage.

Requires the Pagelayer plugin on WordPress 6.9+ (or another source of wp_register_ability()) for the Abilities API — registration is skipped entirely via a function_exists() guard when it isn't available, and ability categories similarly require wp_register_ability_category(). Most abilities require the 'edit_posts' capability; update-global-styles, create-menu, and delete-menu require 'manage_options'. search-images additionally needs a Pexels API key configured on the Pagelayer AI Agents settings page, and get-library-sections/import-library-section call Pagelayer's own hosted library API. Four near-duplicate abilities (get-widget, get-widgets-summary, edit-layout, navigator) are registered in source with mcp_public:false — fully callable over the REST Abilities API but intentionally left out of the advertised MCP tool list as duplicates of get-widget-schema, list-widgets, update-page, and get-page respectively — and are excluded from this listing.

What it does

Runs the same node-walking validator used internally to gate every write against either a supplied pagelayer_data tree or an existing post_id's stored layout, without saving anything. Checks for unregistered widget tags, rows without column children, widgets placed directly inside rows, missing image alt text, inline CSS in rich text, attributes not declared in a widget's own schema, gated attributes sent without their required companion, remaining placeholder/default text, and single-<h1> SEO structure, returning a 0-100 score, per-check booleans, and arrays of errors/warnings/suggestions with concrete fix recommendations.

See it in action

You ask your AI assistant

"Validate page 128 and tell me if anything is wrong before I publish it."

Inputs

Name Type Required Description
post_id integer No Post ID to load layout data from, if pagelayer_data isn't given.
pagelayer_data object No Layout node tree to validate directly.

Returns

An object with valid (boolean), score (0-100), a human-readable summary, a checks breakdown (widget_compatibility, hierarchy, accessibility, seo, global_styles booleans), and errors/warnings/suggestions arrays with element_id, widget, issue, and recommendation per finding.

Permission

Requires the 'edit_posts' capability.

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.