transform_for_wechat
Converts markdown to WeChat-formatted HTML. Splits paragraphs, handles code blocks, converts hyperlinks to footnotes, adds templates, and generates three title candidates.
Instructions
将 markdown 内容转换为公众号适配的 HTML 格式。自动段落切分、代码块处理、超链接转脚注、添加头尾模板,并生成 3 个标题候选。
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": {
"raw_markdown": "<raw_markdown>"
},
"name": "transform_for_wechat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | 文章原标题(用于生成标题候选) | |
| raw_markdown | Yes | 原始 markdown 内容 | |
| apply_template | No | 是否应用头尾模板 |