{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "lexmount-moli--fetch-page-as-markdown-for-agent",
 "repo": "lexmount/moli",
 "repo_url": "https://github.com/lexmount/moli",
 "repo_slug": "lexmount-moli",
 "title": "Fetch a web page as Markdown for an AI agent",
 "page_title": "How to fetch a web page as Markdown for an AI agent with Moli",
 "summary": "Turn any public page into clean Markdown text that an agent can read and reason over.",
 "who": "A developer or researcher building an AI agent that must read web pages, triggered when raw HTML is too noisy to feed a model.",
 "problem": "Raw HTML is bloated and hard for a language model to use, and many pages need JavaScript to show their content.",
 "outcome": "A Markdown rendering of the target page printed to the terminal, with JavaScript-rendered content included.",
 "steps": [
  "Install the Moli binary with `curl --proto '=https' --tlsv1.2 -fsSL https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | sh` on Linux or macOS, or run the PowerShell installer from the README on Windows. (inferred, check the README)",
  "Run `moli fetch --dump markdown --wait-until done https://example.com` to render the page as Markdown. (inferred, check the README)",
  "Replace the example URL with your target and redirect output to a file if your agent reads from disk."
 ],
 "agent_prompt": "Using the repo lexmount/moli, install the prebuilt Moli binary and run `moli fetch --dump markdown --wait-until done <target-url>`. Output the Markdown of the page. Verify that the main body text of the page appears and is not just a blank shell.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Moli's own benchmark counts a page as useful only when meaningful content appears after JavaScript runs, and its mixed crawl success rate was 53.6%, so some pages will still come back thin.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "rust",
 "requirements": [
  "A computer running Linux, macOS, or Windows",
  "Terminal access (PowerShell on Windows)",
  "Permission to download and run the Moli installer from GitHub",
  "A URL to fetch or test"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lexmount-moli/fetch-page-as-markdown-for-agent/",
 "md": "https://dedupedai.com/use-cases/lexmount-moli/fetch-page-as-markdown-for-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/lexmount-moli--fetch-page-as-markdown-for-agent.json",
 "api_version": "v1"
}
