delete_widget
Remove a widget from a page with backup and confirmation. Deletes by widget ID and verifies removal.
Instructions
Remove a widget from a page by id. Two-call confirmation. Backs up before deleting; re-reads to confirm the widget is gone.
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": {
"page_id": "<page_id>",
"widget_id": "<widget_id>"
},
"name": "delete_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | ||
| page_id | Yes | ||
| widget_id | Yes | ||
| confirmation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| page_id | Yes | ||
| confirmation_token | No | ||
| backup_meta_key | No | ||
| css_flush | No | ||
| mutated | No | ||
| warnings | No | ||
| verification | No | ||
| widget_id | Yes |