Find Blocks
Finds blocks in one post or page by type (such as "heading", "image" or "core/button"), by words in their text, or by a setting, and returns their paths. Read-only. Faster than reading the whole outline when you know what you are looking for, such as "the heading that says Pricing" or "every image". Text matches the block that holds the words, not the group around it.
Also known as: find a block, search the page, locate heading, which block says.
| Property | Value |
|---|---|
| Ability slug | mosmcp/block-find |
| Wire tool name | mosmcp__block-find |
| Category | Block Editor (mosmcp-blocks) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | ID of the post, page, custom post item or synced pattern. |
| block | string | — | Block type to match, such as "heading", "paragraph", "image" or a full name like "core/cover" or one from a block plugin. A name without a slash means a core block. | |
| text | string | — | Words the block's own text contains, case-insensitive. | |
| attribute | string | — | A setting name the block must have, such as "anchor" or "level". | |
| attribute_value | string | — | Optional value that setting must equal, compared as text. | |
| per_page | integer (1–200) | 50 |
Maximum matches to return. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | |
| post_type | string | ||
| title | string | ||
| status | string | ||
| modified | string | Last-modified time. Pass it as expected_modified on your next change. | |
| view_url | string | Public address, when published. | |
| preview_url | string | Preview address for unpublished content, for signed-in editors. | |
| edit_url | string | ||
| total | integer | Yes | |
| showing | integer | ||
| truncated | boolean | ||
| matches | object[] | Yes | |
| matches[].path | string | ||
| matches[].depth | integer | ||
| matches[].block | string | ||
| matches[].title | string | ||
| matches[].text | string | ||
| matches[].child_count | integer | ||
| matches[].fields | string[] | Text fields mosmcp/block-update-text can change. | |
| matches[].key_attrs | object | Notable settings, such as heading level, alignment, anchor or link. | |
| matches[].is_dynamic | boolean |
| << Previous | Next >> |
|---|---|
| Duplicate Block | Get Block |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.