mcp-easy-ai__wp_list_templates
Lists block templates or template parts. Optional: type (template — default — or template_part; template parts are the header, footer and other reusable areas of a block theme), area (template parts only: header, footer or uncategorized, exact match applied locally), search (case-insensitive match on title, slug, or description, applied locally), per_page (default 10, max 100), page (pagination applied locally). Returns { templates: [{ id, slug, title, description, type, area, status, has_theme_file }], total, total_pages, page, per_page }. area is an empty string for templates. IDs are theme-slug//slug for both types and are accepted by wp_get_template / wp_update_template with the same type. Requires an active block theme (Full Site Editing). Through Royally: its server marks it read-only, so it runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Template parts only: keep parts whose area equals this value (`header`, `footer`, `uncategorized`). Applied locally. | |
| page | No | Page number for pagination. | |
| type | No | What to list: `template` (page templates such as index, single, archive) or `template_part` (header, footer and other reusable areas). | template |
| search | No | Search by keyword. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| per_page | No | Items per page (1-100). |