Web page to Markdown
page_to_markdownFetches a web page and converts its main content into clean Markdown for LLM reading. Removes navigation, ads, scripts, and cookie banners, and returns title, word count, and truncation status.
Instructions
Fetch a web page and return its main content as clean Markdown (navigation, ads, scripts and cookie banners removed), ready for an LLM to read, with its title, word count and whether it was cut short: 20,000 characters by default, up to 100,000. Costs $0.002 per call.
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": "page_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL, e.g. https://blog.cloudflare.com | |
| max_chars | No | Maximum Markdown length. Default 20000. |