OpenClaw · Skill
Mdnew
Fetch clean Markdown from any URL using the markdown.new three-tier conversion pipeline (Header Negotiation -> Workers AI -> Browser Rendering).
Install
Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.
Primary command
clawhub install thendcn/mdnewClawHub installer
npx clawhub@latest install thendcn/mdnewOpenClaw CLI
openclaw skills install thendcn/mdnewDirect OpenClaw install
openclaw install thendcn/mdnewWhat this skill does
Fetch clean Markdown from any URL using the markdown.new three-tier conversion pipeline (Header Negotiation -> Workers AI -> Browser Rendering).
Why it matters
Reduces page size by up to 80% compared to raw HTML, making it practical for agents with tight context windows that would otherwise struggle with full-page content.
Typical use cases
- Extracting article text for LLM analysis
- Scraping docs pages when web_fetch returns noisy HTML
- Reading JS-rendered pages without a full browser setup
- Reducing token usage when ingesting long web pages
- Feeding clean web content into agent context windows
Source instructions
mdnew
Fetch clean Markdown from any URL using the markdown.new three-tier conversion pipeline (Header Negotiation -> Workers AI -> Browser Rendering).
Usage
Run the script with a target URL:
python3 scripts/mdnew.py <url>
Why use mdnew?
- Token Efficiency: Reduces content size by up to 80% compared to raw HTML.
- Clean Data: Strips boilerplate, ads, and nav menus, leaving only core content.
- JS Execution: Automatically handles JS-heavy pages via Cloudflare Browser Rendering fallback.
- Agent-First: Includes
x-markdown-tokenstracking to help manage context windows.