extract_markdown
Scrape web URLs or parse raw HTML into clean, token-efficient Markdown, stripping ads and navigation. Cut LLM context token usage by 80-95%.
Instructions
Web-to-Markdown context compressor. Scrapes web URLs or parses raw HTML into clean, token-efficient Markdown, stripping boilerplate, scripts, ads, and navigation chrome. Cuts LLM prompt context token consumption by 80% to 95%.
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": "extract_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public web URL to fetch and compress into Markdown. | |
| raw_html | No | Optional raw HTML string to convert if URL is not provided. | |
| include_links | No | Whether to retain hyperlinks in [text](url) format (default: false). |