Update Global Styles 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 →

Update Global Styles

Write

Update the site's design-system tokens — global colors, global fonts, and content width.

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

Accepts global_colors and/or global_fonts maps and normalizes each entry into Pagelayer's stored {title, value} shape before saving to the pagelayer_global_colors/pagelayer_global_fonts options — accepting either a flat {"primary":"#E50914"} map or the full storage shape — plus an optional content_width string. Because the theme's customizer reads global tokens by their "value" key, writing a flat map through unnormalized previously made every --pagelayer-color-* CSS variable render empty; this ability guards against that. Requires the 'manage_options' capability, unlike most other Pagelayer abilities.

See it in action

You ask your AI assistant

"Set the global primary color to #E50914 and the global heading font to Poppins."

Inputs

Name Type Required Description
global_colors object No Map of color key to hex value or {title, value}.
global_fonts object No Map of font key to value or {title, value}.
content_width string No Site content width.

Returns

An object with success:true.

Permission

Requires the 'manage_options' 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.