Web page to clean Markdown
web_markdownMarkdown of a live web page for LLM context: final URL after up to 5 validated redirects, HTTP status, content type, title, meta description, lang, Markdown (main content by default: /, without scripts, navigation, asides, footers), word count, token estimate, link count and truncation flag. PDF, DOCX, XLSX, OpenDocument, CSV and XML URLs are converted too; plain text is passed through. Conversion: Cloudflare Workers AI toMarkdown. DNS via Cloudflare DoH. Price: $0.003 per successful call, paid in USDC with x402 v2; failed calls and calls that match nothing are not charged.
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": {
"url": "<url>"
},
"name": "web_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | http or https URL of the page (a bare domain is fetched as https://). Default ports only; credentials, IP addresses, localhost and private or single-label names are rejected. | |
| main_only | No | true (default) converts only the main content (<main>, else <article>, else <body>) with scripts, styles, navigation, asides, footers and similar blocks removed; false converts the whole page (with front matter and any JSON-LD). | |
| max_chars | No | Maximum characters of Markdown returned, 1000 to 100000. Default 20000. Longer output is cut at a line boundary and flagged truncated. |