WordPress: Wp blocks get
wordpress_specialist_wp_blocks_getRead a WordPress post or page as a structured block tree, fetching post_content via REST and parsing it into blockName, attrs, innerBlocks, and innerHTML entries.
Instructions
[UNIFIED] Read a post or page as a block tree. Fetches post_content via stock REST then parses it server-side with WP's block grammar so the caller gets a structured array of {blockName, attrs, innerBlocks, innerHTML} entries. Works on any WordPress 5.0+ install — no companion route needed for reads.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"post_id": "<post_id>"
},
"name": "wordpress_specialist_wp_blocks_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| post_id | Yes | ||
| post_type | No | posts |