inputSchema
{
"type": "object",
"required": [
"markdown"
],
"properties": {
"markdown": {
"type": "string",
"description": "待处理的 Markdown 文本"
},
"forWeChat": {
"type": "boolean",
"default": false,
"description": "html/html_preview 模式下是否生成微信公众号草稿样式"
},
"fontSizePx": {
"type": "integer",
"default": 14,
"description": "HTML 模式的表格字号"
},
"outputFormat": {
"enum": [
"blocks",
"html",
"html_preview",
"markdown",
"parsed_rows",
"has_table"
],
"type": "string",
"default": "blocks",
"description": "输出格式:blocks(分块数组)/ html(微信公众号格式表格 HTML)/ html_preview(文档区预览 HTML)/ markdown(重建管道表)/ parsed_rows(纯二维数组)/ has_table(仅检测是否存在表)"
}
}
}
outputSchema
{
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"description": "根据 outputFormat 返回不同类型的数据"
},
"hasTable": {
"type": "boolean",
"description": "Markdown 中是否包含管道表"
},
"blockCount": {
"type": "integer",
"description": "Markdown 分块总数"
}
}
}