Delete a widget
delete_widgetPermanently delete a widget. Calling this without confirm returns a preview. This cannot be undone.
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": {
"viewId": "<viewId>",
"widgetId": "<widgetId>"
},
"name": "delete_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| viewId | Yes | View id. | |
| confirm | No | Set to true only after the user has seen what will be deleted and explicitly agreed. Calling without it returns a preview instead of deleting. | |
| widgetId | Yes | Widget id. | |
| confirmName | No | The exact current name of the item being deleted, copied from the preview. Required alongside confirm. |