Get Schemas For Several Widgets 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 Schemas For Several Widgets

Read-only

Fetch compact schemas for up to 12 named widgets in a single batched call.

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

Takes a required list of widget tags (max 12; extras are dropped) and returns each one's compacted own-section schema in one response, without repeating the shared legend and shared-section notes per widget. Calling without a widgets list returns an error rather than the schema for all roughly 125 widgets, which would be several hundred thousand tokens and unusable — list-widgets should be used first to pick which widgets are needed.

See it in action

You ask your AI assistant

"Get the schemas for pl_heading, pl_btn, and pl_image in one call."

Inputs

Name Type Required Description
widgets array Yes Widget tags, e.g. ["pl_heading","pl_btn"]. Max 12.

Returns

An object with widgets (map of tag to its compact own-section schema), legend, an optional unknown_widgets array for tags that don't exist, and a note.

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.