Convert Page to Markdown
page_to_markdownConverts any web page URL into clean Markdown for LLM context, preserving headings, code blocks, and tables while stripping ads and navigation. Runs locally with no external API calls.
Instructions
Fetch a web page URL and convert it to clean Markdown optimized for LLM context. Preserves headings, code blocks (with language hints), links, and tables; strips ads, navigation, and cookie banners. For Mintlify docs (docs.anthropic.com, OpenAI platform, Vercel, Stripe, etc.) tries the URL.md convention first for cleanest output. Discovers tab groups statically and emits each panel as a ### Tab: {label} section instead of concatenating (prevents Python+TypeScript examples merging into one broken block). Zero external API calls — parses locally via linkedom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute HTTP or HTTPS URL of the web page to convert. Blocks private ranges, loopback, and cloud metadata endpoints. | |
| timeout_ms | No | Abort the fetch after N milliseconds. Range: 1000-60000. | |
| include_images | No | Include image references () in the output. | |
| include_frontmatter | No | Prepend a YAML frontmatter block with title, source URL, capture timestamp, language, description, and canonical URL. |