royal-mcp__wp_update_block_attributes
Change attributes of the block at path, for blocks that store no markup of their own (server-rendered blocks such as latest posts, query loops and many plugin blocks; wp_get_block_outline marks them). Values are checked against the block type's attribute definitions; null removes an attribute. Blocks that store markup are refused: use wp_replace_block for those. 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 |
|---|---|---|---|
| id | Yes | Post ID (any post type that stores block content). | |
| path | Yes | Block path from wp_get_block_outline, e.g. "2" or "2.0.1" (counting from 0). | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| attributes | Yes | Attribute names and new values; null removes one. | |
| expected_name | No | Optional guard: the block name you expect at path (e.g. core/heading). Nothing changes if it differs. |