topai_web_to_markdown
Convert any public HTTP/HTTPS webpage into clean, ad-free, token-optimized Markdown with metadata, so agents can read article text without HTML/DOM clutter before RAG indexing or summarization.
Instructions
Converts any public HTTP/HTTPS webpage into clean, ad-free, token-optimized Markdown with document metadata. Use when an agent needs to read article text, documentation, or web pages without HTML/DOM clutter before RAG indexing or summarization. Do not use for capturing visual pixel screenshots (use topai_headless_screenshot instead) or running multi-site keyword searches (use topai_ai_web_search instead). Stateless, read-only, idempotent execution in <30ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full public HTTP or HTTPS URL of the target webpage to convert into Markdown (e.g., 'https://stripe.com/docs'). Must not point to private/loopback IP ranges. | |
| include_links | No | Set to true to preserve Markdown hyperlinks `[text](url)` in the extracted output, or false to strip all links for maximum token compression (default: true). |