royal-mcp__wp_insert_blocks
Insert block markup into a post: at the start or end, before or after the block at path, or as the first or last inner block of the block at path. The markup is checked first (wp_validate_blocks) and nothing is written if it fails. Checks the edit lock, refuses changes WordPress would strip for your account, saves a revision and returns an undo token. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Where to insert (default end). before/after/inside_start/inside_end need path. | |
| id | Yes | Post ID (any post type that stores block content). | |
| path | No | Block path from wp_get_block_outline, e.g. "2" or "2.0.1" (counting from 0). | |
| markup | Yes | Serialized block markup, e.g. <!-- wp:paragraph --><p>Text</p><!-- /wp:paragraph -->. Copy existing markup from wp_get_post or wp_get_synced_pattern as a model. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) |