mp_publish_draft
Publish or schedule an existing WeChat draft by its integer draft id, with human approval and confirm=true required. Submits the draft editor, then polls 发表记录 until a new msgid verifies visibility.
Instructions
Publish or schedule an existing draft. IRREVERSIBLE and publicly visible: requires confirm=true, and the human must have approved this exact draft id. Opens the draft in the composer, presses 发表, waits for the confirmation dialog (发表贴图无需开启群发通知 / 定时发表) and presses its 发表 button. action=publish submits now, action=schedule turns on 定时发表 and submits for now+schedule_minutes. After submitting, the console shows a 扫码 page that the admin must scan with WeChat; the item then lands in 发表记录 about two minutes later. verified=true only when a NEW msgid appears in that list, so wait_publish_s controls how long the call polls for it. 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,并且必须由人确认过这个具体的 draft id。它会打开草稿编辑器、点发表、等确认弹窗(发表贴图无需开启群发通知 / 定时发表)再点弹窗里的发表按钮。action=publish 立即提交;action=schedule 打开定时发表,提交到 schedule_minutes 分钟之后。提交后控制台会出现扫码页,必须由管理员用微信扫,约 2 分钟后内容才落到发表记录。只有发表记录里出现「新」msgid 时 verified=true,wait_publish_s 控制轮询多久。硬性要求: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_publish_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | which console tab the draft is opened in; pass the same kind mp_list_drafts reported / 草稿在哪个后台标签页打开;传 mp_list_drafts 报出来的那个 kind | tietu |
| action | No | publish submits now; schedule uses 定时发表 / publish 立即提交;schedule 走定时发表 | publish |
| confirm | No | must be true, otherwise the call is refused with -32602 before the browser opens; publishing cannot be undone / 必须为 true,否则在打开浏览器之前就返回 -32602;发表不可撤销 | |
| appmsgid | Yes | required, integer draft id from mp_list_drafts / mp_publish_material (for example 100000250), not the title and not a string / 必填,整数草稿 id,来自 mp_list_drafts / mp_publish_material(例如 100000250),不是标题、不要传字符串 | |
| screenshot | No | save a full-page PNG after the submit / 提交之后存一张整页 PNG | |
| wait_publish_s | No | 0-900 seconds to poll 发表记录 for the new msgid; 0 returns verified=false at once / 轮询发表记录等新 msgid 的秒数,取值 0–900;0 表示立刻返回 verified=false | |
| schedule_minutes | No | action=schedule only, 1-10080 minutes from now; the console picker only offers today, so a value past midnight cannot be honoured — keep it within the same day / 仅 action=schedule,取值 1–10080 分钟;控制台选择器只提供「今天」,超过今天 24 点的值无法兑现——请控制在当天内 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||