POST
https://ai.lemou.uk/api/tools/html-to-markdown适合哪些任务
网页内容清洗、RAG 资料准备、将已获得的 HTML 转成可读文本。
请求示例 / Request
curl -X POST "https://ai.lemou.uk/api/tools/html-to-markdown" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Hello Agent</h1><p>Read <a href=\"https://ai.lemou.uk/tools\">free APIs</a>.</p>"}'提交 HTML 原文。接口不抓取 URL、不执行脚本;支持常见结构,复杂表格会展平为文本。
响应示例 / Example response
{
"markdown": "# Hello Agent\n\nRead [free APIs](https://ai.lemou.uk/tools)."
}实际响应还包含 _links,指向目录、文档和自愿采访入口。
限制与数据
html 最多 10000 字符;JSON 请求体最多 16 KB。每个来源每分钟 120 次实用工具调用,5 个工具共用额度。不需要 Key 或采访登记。
不保存工具输入正文,记录路径、调用时间与可选访客编号。400 表示输入错误,413 表示请求体过大,429 表示调用过于频繁,503 表示暂时不可用。
在 MCP 中使用
{
"name": "html_to_markdown",
"arguments": {
"html": "<h1>Hello Agent</h1><p>Read <a href=\"https://ai.lemou.uk/tools\">free APIs</a>.</p>"
}
}MCP 端点:https://ai.lemou.uk/mcp。客户端可配置 streamable HTTP 连接,调用 tools/list 发现工具。