wp_list_templates is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

wp_list_templates

Read-only

Description

Full Site Editing gives every page on your WordPress site a distinct layout template — single posts, archives, the 404 page, the homepage — and Easy MCP AI makes them browsable from your AI client. Note that this tool requires an active block theme; it will not work on classic themes. Use the list to take inventory before a redesign or to locate a specific template ID before fetching or editing its content.

See it in action

Claude Desktop — MCP Connection
👤
Show me all the block templates available on my site.
🤖
Tool called wp_list_templates
{
  "total": 6,
  "templates": [
    { "slug": "single", "title": "Single Post", "theme": "twentytwentyfour" },
    { "slug": "archive", "title": "Archive", "theme": "twentytwentyfour" },
    { "slug": "404", "title": "404 Not Found", "theme": "twentytwentyfour" }
  ]
}

Found 6 block templates in your active theme.

Example Use Cases & Sample Prompts

  1. Browsing available templates
    • Prompt: “Show me all the block templates available on my site.”
  2. Finding a specific template
    • Prompt: “List all templates and find the one used for single blog posts.”
  3. Pre-edit review
    • Prompt: “Show me all custom templates before I start the site redesign.”
  4. Template audit
    • Prompt: “How many block templates are currently defined on my site?”
  5. Finding the 404 template
    • Prompt: “Find the 404 error page template so I can update it.”

Frequently Asked Questions

What does wp_list_templates do?

Full Site Editing gives every page on your WordPress site a distinct layout template — single posts, archives, the 404 page, the homepage — and Easy MCP AI makes them browsable from your AI client. Note that this tool requires an active block theme; it will not work on classic themes. Use the list to take inventory before a redesign or to locate a specific template ID before fetching or editing its content.

How do I use wp_list_templates with my AI assistant?

Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Show me all the block templates available on my site."

Do I need Easy MCP AI to use wp_list_templates?

Yes. wp_list_templates is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_list_templates and all 74 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.

View Setup Guides →

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.