mcp_reorder_widgets
Set the exact widget order for a WordPress sidebar by passing the complete widget ID list; omitted widgets are removed from that sidebar while their settings remain.
Instructions
Set the widget order of a sidebar. Pass the COMPLETE list: widgets of the sidebar left out are removed from it (their settings stay, but they end up in no sidebar, not even Inactive Widgets).
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>",
"sidebar_id": "<sidebar_id>",
"widget_ids": "<widget_ids>"
},
"name": "mcp_reorder_widgets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| sidebar_id | Yes | Sidebar ID | |
| widget_ids | Yes | All widget IDs of the sidebar in the new order (each must already be in this sidebar) |