Create Entire Website 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 →

Create Entire Website

Write

Generate a full multi-page website — pages, a navigation menu built from them, and header/footer templates — in a single 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

The recommended entry point for building a whole site instead of repeated create-page calls: creates every page in the given pages array (each going through the same inline-CSS and content-quality gates as create-page), picks or creates a homepage, builds a "Primary Menu" from the created pages (or from an explicit menu spec) unless single_page_site is set, and then creates any given theme_templates — automatically filling in a header's Primary Menu nav_list with the real menu id if the caller left it empty or "auto". If no header or footer template exists yet, a bare scaffold is auto-generated using primary_color and the site's global tokens so the site never publishes without site-wide chrome. Per-item failures are collected and reported in a failed array rather than silently dropped, so the caller knows exactly which pages or templates were rejected and why.

See it in action

You ask your AI assistant

"Build a full 5-page website for a local bakery, including a homepage, about, menu, contact page, and matching header/footer."

Inputs

Name Type Required Description
site_name string Yes Website/site name.
primary_color string No Fallback color used only for auto-generated bare header/footer scaffolding if none exist.
global_colors object No Global color tokens.
global_fonts object No Global font tokens.
content_width string No Site content width.
pages array Yes List of page objects to create (title, pagelayer_data, status, skip_validation, ...).
theme_templates array No Templates to create alongside the pages.
menu object No Optional nav menu spec {name, location, items} in create-menu format. Omit and a menu is built from the created pages.
single_page_site boolean No Set only when the user asked for a one-page site. Skips menu creation.

Returns

An object with success (boolean), site_name, homepage_id, created_templates (map of type to result), menu (the create-menu result or reuse info), pages and posts (arrays of created-item results), and an optional failed array plus a summary message when any item was rejected.

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.