Get Block


Returns one block in full: its type, every setting (attributes), its complete saved markup including inner blocks, its plain text, and which abilities can change it. Read-only. Use it before rewriting a block with mosmcp/block-replace, so the new markup keeps the settings and classes the block already has.

Also known as: block details, block markup, block settings, inspect block.

Property Value
Ability slug mosmcp/block-get
Wire tool name mosmcp__block-get
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.
path string Yes — The block's path, such as "0" (first block) or "2.1" (second block inside the third), from mosmcp/block-list or mosmcp/block-find.

 

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
path string Yes
block string Yes
block_title string
attrs object Every setting stored on the block.
markup string Yes The block exactly as stored, including its inner blocks.
text string
fields string[] Text fields mosmcp/block-update-text can change on this block.
is_dynamic boolean True when WordPress builds the block's output when the page is shown (latest posts, navigation, query loops).
settings_only boolean True when the block saves no HTML of its own, so mosmcp/block-update-attributes can change it.
inner_blocks object[]
inner_blocks[].path string
inner_blocks[].block string
inner_blocks[].text string
editing_options string[]

 


<< Previous Next >>
Find Blocks Insert Blocks

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.