wechat_create_draft
Save prepared HTML content to a WeChat Official Account draft and return its mediaId for later publishing. Use it to stage articles with title, author, digest, and cover image options.
Instructions
将 HTML 正文保存到公众号草稿箱,返回草稿 mediaId
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": {
"title": "<title>",
"content": "<content>"
},
"name": "wechat_create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | 草稿标题 | |
| author | No | 作者 | |
| digest | No | 摘要;省略时由微信处理 | |
| content | Yes | 已准备好的 HTML 正文,原样提交,不转换 Markdown | |
| thumbMediaId | No | 已有的永久封面素材 ID;与 coverImagePath 二选一 | |
| coverImagePath | No | WECHAT_COVER_DIR 内图片路径;与 thumbMediaId 二选一 | |
| contentSourceUrl | No | 阅读原文链接 |