Web page to markdown
markdownFetches a public URL and converts it to clean markdown, dropping navigation, scripts and styling. Works for HTML pages, PDFs, Word, Excel and CSV files. Returns the page title, final URL after redirects and the markdown text. Paid tool: $0.004 per call in USDC via x402 at GET https://x402-tools.com/v1/markdown. Calling it here returns the endpoint, price and how to pay.
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": "markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL to convert. | |
| max_chars | No | Truncate the markdown to this many characters (default 100000, max 500000). |