convert_html
Convert HTML content to clean Markdown optimized for LLM processing, extracting main content and resolving links for better AI analysis.
Instructions
Convert an HTML string to clean, LLM-optimized Markdown. Use this when you already have HTML content and need it as Markdown.
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": {
"html": "<html>"
},
"name": "convert_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The HTML content to convert | |
| url | No | Base URL for resolving relative links and images | |
| include_header | No | Include title/source/author header in output | |
| raw | No | Use full HTML content instead of extracting main article |