Read a web page as clean Markdown
clean_extractExtract a full page or selected sections from a public URL or raw HTML as clean Markdown, with navigation, scripts and page chrome removed. Use it instead of a raw fetch when a task needs the text of documentation, an article, an RFC or another reference page: in a five-site benchmark the Markdown was 62% fewer estimated tokens than the HTML. Call the free clean_extract_outline first on a long page, then pass only the section ids you need. A call is charged only when it returns usable content; the first 3 usable extraction calls are free, total, then USD 0.05. Uncharged failures name upstream_timeout, upstream_http_error, bot_challenge, js_shell, empty_extraction, or sections_not_found. Recoverable structured data names fallback_used. Every success reports extraction_quality and extraction_content_ratio_band.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sections | No | Optional ids from clean_extract_outline. Return only these sections in document order. | |
| url_or_html | Yes | A public HTTP(S) URL or a raw HTML string to convert into Markdown. | |
| max_output_bytes | No | Optional maximum UTF-8 byte length of the returned Markdown. |