DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to capture a screenshot or PDF of a web page with Moli

Save a PNG or PDF of a rendered page for review, reports, or visual checks.

Short answer: Install the Moli binary from the README installer; then 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. All steps.

  • Research
  • Intermediate
  • 15 minutes
  • From the README
  • Any agent

Who it is forA QA tester or operations person who needs an image or PDF of a live page, triggered by a need for visual evidence.

The problemText extraction alone cannot show how a page looks, and most headless setups need a separate browser install to take pictures.

The outcomeA PNG of the viewport or the full page, or a paginated PDF, saved to a local file.

What you need first

  • 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

Steps

  1. Install the Moli binary from the README installer.
  2. Run moli fetch --layout --dump screenshot https://example.com > page.png for a viewport PNG.
  3. Run moli fetch --layout --dump pdf https://example.com > page.pdf to save a paginated PDF instead.

Prompt for your agent

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.

Caveat. Visual output requires the --layout flag because layout and rendering are off by default, so screenshots will not appear without it.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for lexmount/moli and "Capture a screenshot or PDF of a web page"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer