List block patterns
list_block_patternsList WordPress block patterns from core, theme, plugins, or pattern directory, filtered by category or search, to reuse existing layout markup instead of hand-writing it.
Instructions
List the block patterns registered on the site — from core, the active theme's patterns/ folder, plugins and the pattern directory — with their categories, filterable by category and search text. Use it to reuse an existing pattern's markup instead of hand-writing layout. Pattern content is omitted by default because it is large; set include_content for truncated markup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum patterns to return. | |
| search | No | Case-insensitive match against the pattern name, title, description and keywords. | |
| source | No | Only patterns from this source, e.g. "theme", "core", "plugin", "pattern-directory/theme". | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| category | No | Only patterns in this category slug, e.g. "header", "call-to-action", "banner". | |
| include_content | No | Include each pattern's block markup, truncated to content_max_chars. | |
| content_max_chars | No | Truncation length per pattern when include_content is true. |