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
- Install the Moli binary from the README installer.
- Run
moli fetch --layout --dump screenshot https://example.com > page.pngfor a viewport PNG. - Run
moli fetch --layout --dump pdf https://example.com > page.pdfto 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer