delete_chat_history
Clear messages from a chat with explicit confirmation. Supports selective removal by message ID and revoking for all participants.
Instructions
清空一个对话的历史记录(不可恢复,必须传 confirm=True)。
Args: chat: 对话。 confirm: 必须显式传 True 才会执行。 revoke_for_everyone: 私聊时同时为对方删除。 max_id: 只清空 ID 小于等于它的消息,0 表示全部。
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": {
"chat": "<chat>"
},
"name": "delete_chat_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| max_id | No | ||
| confirm | No | ||
| revoke_for_everyone | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||