{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "lexmount-moli--capture-screenshot-or-pdf-of-page",
 "repo": "lexmount/moli",
 "repo_url": "https://github.com/lexmount/moli",
 "repo_slug": "lexmount-moli",
 "title": "Capture a screenshot or PDF of a web page",
 "page_title": "How to capture a screenshot or PDF of a web page with Moli",
 "summary": "Save a PNG or PDF of a rendered page for review, reports, or visual checks.",
 "who": "A QA tester or operations person who needs an image or PDF of a live page, triggered by a need for visual evidence.",
 "problem": "Text extraction alone cannot show how a page looks, and most headless setups need a separate browser install to take pictures.",
 "outcome": "A PNG of the viewport or the full page, or a paginated PDF, saved to a local file.",
 "steps": [
  "Install the Moli binary from the README installer.",
  "Run `moli fetch --layout --dump screenshot https://example.com > page.png` for a viewport PNG.",
  "Run `moli fetch --layout --dump pdf https://example.com > page.pdf` to save a paginated PDF instead."
 ],
 "agent_prompt": "Using the repo lexmount/moli, run `moli fetch --layout --dump screenshot <target-url> > page.png`. Save the PNG and report its file size. Verify that the file opens as an image showing the page.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Visual output requires the --layout flag because layout and rendering are off by default, so screenshots will not appear without it.",
 "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": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lexmount-moli/capture-screenshot-or-pdf-of-page/",
 "md": "https://dedupedai.com/use-cases/lexmount-moli/capture-screenshot-or-pdf-of-page/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--capture-screenshot-or-pdf-of-page.json",
 "api_version": "v1"
}
