List Blocks in Content


Lists every block in a post, page, custom post item or synced pattern, in order, as a flat outline: each block's path (such as "2.1"), type, a short text excerpt, how many blocks are inside it, and which text fields can be changed. Read-only. Start here before changing a page: the paths it returns are how every other block ability finds a block, and "modified" is the value to pass as expected_modified so an edit is refused if the page changed meanwhile.

Also known as: page structure, list view, outline, what is on this page, show the blocks, gutenberg blocks.

Property Value
Ability slug mosmcp/block-list
Wire tool name mosmcp__block-list
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.
max_depth integer (0–50) — Deepest nesting level to include, where 0 is top-level blocks only.
per_page integer (1–500) 200 Maximum blocks to return.
offset integer (min 0) 0 Blocks to skip, for the next page of a long outline.

 

Output schema

Field Type Required Description
id integer Yes
post_type string
title string
status string
modified string Yes 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
editor string Yes How the content is made: "blocks", "classic" (one classic-editor block), "mixed", "empty", or "builder:<name>" for a page-builder page whose blocks are not its real layout.
total_blocks integer
showing integer
offset integer
truncated boolean
blocks object[] Yes
blocks[].path string
blocks[].depth integer
blocks[].block string
blocks[].title string
blocks[].text string
blocks[].child_count integer
blocks[].fields string[] Text fields mosmcp/block-update-text can change.
blocks[].key_attrs object Notable settings, such as heading level, alignment, anchor or link.
blocks[].is_dynamic boolean
notes string[]

 


<< Previous Next >>
List Block Types Move 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.