text_html_to_markdown
HTML to Markdown converter — Convert an HTML snippet or document to clean GitHub-flavored Markdown offline (for LLM context, docs, notes). html= URL-encoded HTML up to 100,000 characters. Handles headings, paragraphs, bold/italic/strikethrough, inline code and fenced code blocks with language (class language-x), nested ordered/unordered lists and task lists, blockquotes, links and images, GFM tables (caption, colspan, pipes escaped), definition lists, hr/br, HTML entities; drops script/style/svg/iframe, form controls and javascript: links. Options: base= absolute URL to resolve relative links and images, main=true keeps only / (strips nav/footer chrome), links=inline|reference|text, images=false, escape=false (no Markdown escaping). Returns markdown, page title, word/char counts and element stats. For a live page by URL use /v1/web/extract. Price: $0.002 USDC (Base, via x402).
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": "text_html_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | <h2>Pricing</h2><p>Plans start at <strong>$5</strong>. See <a href='/docs'>the docs</a>.</p><ul><li>Fast</li><li>Cheap</li></ul> |