Web HTML to Clean LLM-Optimized Markdown Engine
extract_clean_markdownConverts raw HTML into clean, boilerplate-free Markdown with preserved links and headings for LLM context ingestion; use it to replace cluttered web pages with readable article text.
Instructions
Converts raw HTML pages into clean, boilerplate-free, LLM-optimized Markdown with preserved hyperlinks and headings. Use when ingesting raw web documents or blog posts into agent context windows; for isolating tabular data into structured datasets, use parse_html_tables instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'html_content' ('conversion_mode' defaults to 'clean_semantic_article'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html_content | Yes | Raw HTML string of the web page or document to convert to clean Markdown. | |
| preserve_links | No | Whether to retain anchor hyperlinks and image markdown references in output. | |
| conversion_mode | No | Markdown extraction strategy: clean semantic article, preserve tables/code, or minimal text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title extracted from H1 or title tag. | |
| markdown | Yes | Clean, sanitized LLM-ready markdown document. | |
| word_count | Yes | Net word count of extracted readable prose. | |
| links_extracted_count | Yes | Total hyperlinks preserved in document. |