widgets_delete
Delete a livechat widget permanently.
This will remove the widget and its embed code will stop working. Its conversations and their messages are deleted with it: the widget IS the channel, and thread.channel_account_id cascades.
Use this when user wants to remove a chat widget.
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": {
"widget_id": "<widget_id>"
},
"name": "widgets_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_id | Yes | ID of the widget to delete | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |