Get Widget Examples 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 Widget Examples

Read-only

Get a canonical JSON node example for one or a few widgets, derived live from each widget's own registered schema.

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

Returns a ready-to-use example node (tag, attrs, content) for the requested widget tag(s), generated from each widget's live schema so it can never drift from the real field names — a hand-maintained example list previously went stale (e.g. pl_iconbox's real fields are service_heading/service_text/service_icon_color, not title/desc/icon_color). Pass a single widget for one example or up to 8 tags via widgets for several in one call; calling with neither returns a message directing the caller to list-widgets first rather than dumping all roughly 125 examples (about 9k tokens).

See it in action

You ask your AI assistant

"Give me an example node for the pl_iconbox and pl_btn widgets."

Inputs

Name Type Required Description
widget string No Single widget tag.
widgets array No Up to 8 tags in one call.

Returns

An object with examples (map of widget tag to its example node), or an error message when neither widget nor widgets was supplied.

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.