Get Common Style Props 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 →

Get Common Style Props

Read-only

Fetch the roughly ten style attributes (background, border, font, position, animation, motion, responsive, custom CSS) every Pagelayer widget, row, and column accepts.

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

Derives the shared style-section props live from a probe widget's registered schema, so the list can never drift, compacted the same way as get-widget-schema. Because get-widget-schema omits these shared sections by default to avoid re-sending roughly 25KB of identical boilerplate on every widget lookup, an AI client is meant to call this once per session to learn the shared vocabulary, then call get-widget-schema per widget for just its own props. The response also documents the "ele_css" escape hatch for styling not covered by any control.

See it in action

You ask your AI assistant

"Get the common style properties every Pagelayer widget shares so I know how to set backgrounds and spacing."

Inputs

Name Type Required Description
sections array No Limit to specific section keys.

Returns

An object with common_styles (the compacted shared-section props), legend (format string), a note explaining when to call this, and styling_rule explaining the ele_css custom-CSS escape hatch.

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.