create_news_draft
Create a WeChat Official Account news draft by submitting HTML content, title, and cover image. Automatically uploads embedded images to WeChat and returns the media ID, title, and cover URL.
Instructions
创建图文草稿(news),成功返回 {"media_id": ..., "title": ..., "cover_url": ...}。
参数:
title: 文章标题(必填)
content: 正文。支持两种形态——HTML 字符串,或本地 .html 文件路径
(若该路径存在则自动读取文件,否则按 HTML 内容处理)
cover: 封面图片(必填):本地文件路径或 http(s) URL,自动上传为封面素材
author: 作者名(可选)
digest: 摘要(可选,留空时微信自动截取正文)
content_source_url: 原文链接(可选)
正文 HTML 中的 <img> 会自动上传到微信并替换 src 为微信托管的 URL;
已指向微信域名(mmbiz.qpic.cn / mp.weixin.qq.com)的图片保持不变。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cover | Yes | ||
| title | Yes | ||
| author | No | ||
| digest | No | ||
| content | Yes | ||
| content_source_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||