Element screenshots for humans and AI agents.

DOMShot captures the exact card, chart, modal, button, or section you need. Use the Chrome extension to pick it by hand, or the agent package to find and capture useful UI elements from automation.

Chrome extension Agent API / CLI / MCP Styled PNG output
DOMShot preview showing a selected webpage card ready to save as a PNG.

See DOMShot in action.

Watch the extension select a visible page element, preview the result, and export a clean PNG without cropping the full screen by hand.

One capture engine, two ways to use it.

DOMShot is for focused UI screenshots. The extension is the visual workflow. The agent package is the automation workflow.

For people

Chrome extension

Open DOMShot, hover the page, click the element you want, preview it, adjust the styling, and download a PNG.

  • Visual element picker
  • Transparent, clean, floating, or studio exports
  • No account or hosted upload workflow
For agents

@usedomshot/cli

Let automation inspect a page, find likely UI elements, capture one or many polished shots, and return confidence, warnings, and paths.

  • Node API, CLI, and MCP server
  • Selector mode or intent-based target finding
  • Styled PNGs, capture sets, plans, and shot packs

Install and use the agent.

The agent package is prepared for npm. After the npm package name and release are finalized, use DOMShot from scripts, shell commands, or MCP-compatible agent hosts.

npm

Install the package

npm install @usedomshot/cli
npx playwright install chromium

Use the Node API when your agent or script can import npm packages directly. The package is published on npm and can also provide the local CLI and MCP server.

Read API docs
CLI

Capture by target

domshot capture https://example.com \
  --target "pricing card" \
  --out shots/pricing.png \
  --style auto

Agents can ask for a useful UI target instead of knowing the selector first.

Read CLI docs
MCP

Add DOMShot tools

{
  "mcpServers": {
    "domshot": {
      "command": "domshot",
      "args": ["mcp"]
    }
  }
}

MCP hosts can call DOMShot tools to inspect pages, plan shots, and capture PNGs.

Read MCP docs

Pick the exact part of the page. Save only that.

Choose the piece you want directly on the page. It can be a card, popup, chart, button, or whole section.

Pick a page element

Point at a card, popup, chart, or section. DOMShot captures that part of the page directly.

Preview and save
DOMShot preview focused on one selected card.

Preview the selected part, adjust the image, and save it as a PNG.

Click what you want

Move your cursor over the page and choose the exact part you want to save.

Preview before saving

Check the image first, then adjust the spacing, background, and size.

Make it look right

Add space, a background, rounded corners, a shadow, or a larger export size.

How it works

Pick a page element, adjust the image, then download the PNG.

1

Select

Open DOMShot and click the part of the page you want to capture.

DOMShot highlighting a selected card on a webpage.
2

Adjust

Choose the background, spacing, shadow, size, and image quality.

DOMShot preview window with controls for background, spacing, shadow, size, and download.
3

Download

Save the finished PNG for documentation, bug reports, updates, or review.

DOMShot download area showing PNG size and the Download PNG button.

Agents can ask for the thing, not the crop.

DOMShot should be the eyes and camera. An agent can inspect the page, ask for "pricing cards" or "balance card", review candidates, and save the best screenshots for docs, posts, or homepage sections.

API
await captureDomshot({
  url: "https://example.com",
  target: "pricing card",
  output: "shots/pricing.png",
  style: "auto"
});
CLI
domshot shot-pack https://example.com \
  --intent "homepage feature visuals" \
  --target "feature cards" \
  --out-dir shots/homepage \
  --style auto
MCP

MCP hosts can call DOMShot tools to inspect candidates, create contact sheets, capture sets, and return JSON metadata with paths, dimensions, confidence, and warnings.

Choose a simple capture or a styled image.

Use a plain image when you just need to show something. Add a background and shadow when the image needs to look finished.

Clean DOMShot image with only the selected card.

Clean

Save the selected part of the page with no extra styling.

Floating DOMShot image with extra spacing and a soft shadow.

Floating

Add space and a soft shadow so the capture stands out.

Studio DOMShot image with a colorful background.

Studio

Add a colorful background and size controls for a shareable image.

For the moments when a full screenshot is too much.

Show just the thing you are talking about, whether a person picks it or an agent finds it.

Documentation

Add a clear image of a feature, setting, or page section.

Bug reports

Show exactly what is broken, without the rest of the page getting in the way.

Product updates

Turn a new feature or design change into a clean visual.

Reviews

Share a focused image with teammates, clients, or stakeholders.

Your page stays in your browser.

The extension handles page content locally when you start a capture and choose an element. The agent package runs in your own automation environment. DOMShot does not provide a hosted capture service.

Read the privacy policy

Save the next page element you need.

Add DOMShot to Chrome for visual captures, or use the agent package locally for automation workflows.

Add to Chrome Read the privacy policy
Preview first Agent-ready PNG output