mp_delete_draft
Delete a WeChat Official Account draft by its integer appmsgid after explicit confirmation. This irreversible action removes only the draft and does not recall already published content.
Instructions
Delete a draft from the 草稿箱. IRREVERSIBLE: requires confirm=true. The console asks 确定删除? in a popover and notes that 删除该内容不会删除已发表的内容, so an already published message stays up — this server cannot recall one. Reports whether the id disappeared from the list afterwards. Limits: appmsgid must be the integer id from mp_list_drafts / mp_publish_material, not the title; kind selects which console tab is used; publishing and deleting need confirm=true and are refused with -32602 before anything is opened.
【中文】从草稿箱删除一条草稿。不可撤销:需要 confirm=true。控制台会用气泡问「确定删除?」,并提示「删除该内容不会删除已发表的内容」,所以已经发出去的内容不会因此下线——本服务也无法召回它。会回报该 id 之后是否从列表里消失。硬性要求:appmsgid 必须是 mp_list_drafts / mp_publish_material 返回的整数 id,不是标题;kind 决定用哪个后台标签页;发表和删除都需要 confirm=true,否则在打开任何页面之前就返回 -32602。
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": {
"appmsgid": "<appmsgid>"
},
"name": "mp_delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | which console tab the draft lives in; pass the same kind mp_list_drafts reported / 草稿在哪个后台标签页;传 mp_list_drafts 报出来的那个 kind | tietu |
| confirm | No | must be true, otherwise the call is refused with -32602 before the browser opens; deletion cannot be undone / 必须为 true,否则在打开浏览器之前就返回 -32602;删除不可撤销 | |
| appmsgid | Yes | required, integer draft id from mp_list_drafts; the title is not an id / 必填,整数草稿 id,来自 mp_list_drafts;标题不是 id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||