Web page to Markdown
page_to_markdownFetch a public web page (robots.txt honored) or take raw HTML and return the main content as clean Markdown with absolute links.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "page_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL to fetch (robots.txt is honored). Optional if html is given; then used as base URL. | |
| html | No | Raw HTML to process instead of fetching (max 3 MB). | |
| include | No | Comma list or array of parts to return: metadata, markdown, text, links, images, headings. Default: markdown | |
| maxChars | No | Cap on markdown/text length (1,000-500,000). | |
| mainContentOnly | No | Strip nav, header, footer, sidebars, cookie banners and ads; keep the main article. |