Parse Wechat Article
parse_wechat_articleExtract title, author, body, images, and videos from WeChat public account article URLs, outputting structured JSON or Markdown with concise or detailed content modes.
Instructions
解析微信公众号文章并提取内容
这是一个完整的工作流工具,支持:
URL验证:自动验证和解析微信公众号文章URL
内容提取:提取标题、作者、正文、图片、视频等
格式化输出:支持JSON和Markdown格式
详细程度控制:concise模式节省上下文,detailed模式提供完整信息
使用场景:
快速获取文章核心内容(concise模式)
需要完整文章内容进行分析(detailed模式)
提取文章中的图片和视频资源
示例:
parse_wechat_article(url="https://mp.weixin.qq.com/s/...", format="json", detail="concise")
parse_wechat_article(url="https://mp.weixin.qq.com/s/...", format="markdown", detail="detailed")
错误处理:
URL无效:会提示正确的URL格式
访问受限:会建议使用浏览器方法或检查登录状态
解析失败:会提供降级方案建议
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": {
"input": "<input>"
},
"name": "parse_wechat_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | 解析微信公众号文章的输入模型 - Agent-Centric 设计 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |