For people
Open the extension, click the element you want, adjust the image, and download a PNG.
Documentation
DOMShot captures one useful part of a webpage instead of the whole screen. Use the Chrome extension when a person wants to click the element by hand. Use the agent package when an AI agent or script needs to inspect the page, choose a good UI element, and save polished PNGs.
A normal screenshot gives you everything on the screen. DOMShot tries to give you only the thing you are talking about: a pricing card, a modal, a chart, a feature tile, a button, or a section of a page. It can keep the element transparent, add padding and shadow, or place it on a styled background for docs, launch notes, homepage sections, and product posts.
Open the extension, click the element you want, adjust the image, and download a PNG.
Ask for a target like pricing card, inspect candidates, plan shots, and capture files locally.
Generate one screenshot, a group of similar elements, or a full shot pack for a page section.
Best when you are looking at the page and want to choose the exact element yourself.
npm/APIBest when an app, script, or agent can import JavaScript and needs direct control.
CLIBest when an agent can run shell commands and read JSON output.
MCPBest when your agent host supports MCP tools and should call DOMShot directly.
HelpUse this when the wrong element is chosen, the page needs login, or capture falls back.
These are the two quickest ways to start. The install command prepares the agent package and the local browser it uses. The capture command asks DOMShot to find a visible pricing card, style it, and write a PNG.
Use this when you want DOMShot available to Node scripts, CLI commands, or MCP hosts.
npm install @domshot/agent
npx playwright install chromium
Expected result: the package is installed and Playwright has a local Chromium browser to run captures.
Use this when you do not know the CSS selector and want DOMShot to find the element.
domshot capture https://example.com \
--target "pricing card" \
--out shots/pricing.png \
--background transparent \
--shadow soft
Expected result: shots/pricing.png plus JSON metadata with the chosen selector, dimensions, and warnings.
Use the Chrome extension. It is the simplest visual workflow.
Use the Node API with selector if you know the CSS selector, or target if you only know what the element means.
Use plan or shot-pack. The plan explains what should be captured; the shot pack writes final PNGs, a contact sheet, and a report.
Use CDP or profile mode so DOMShot can attach to a browser where you are already signed in.