wp_move_block
Moves an existing Gutenberg block to a different index within the same post.
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_id": "<site_id>",
"post_id": "<post_id>",
"to_index": "<to_index>"
},
"name": "wp_move_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | The post ID containing the block. | |
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. | |
| to_index | Yes | Zero-based destination block index. | |
| from_path | No | Raw source path returned by wp_list_blocks. | |
| from_index | No | Zero-based source block index. | |
| to_parent_path | No | Raw destination parent path. Omit for the top level. |