ClaudeShot
A screenshot plugin for Claude Code. Takes screenshots of your screen or any webpage and brings them into your conversation.
I built this because I kept wanting Claude to see what I was looking at - error messages, UI bugs, designs I wanted to replicate. Now I can just /screenshot and it's in the conversation.
What it does
- Screen capture - grab a region, window, or your whole screen
- Web screenshots - point it at any URL and get a full-page capture
- DOM capture - save page HTML alongside screenshots for debugging
- Auto-resize - shrink images to save tokens (a 217K screenshot becomes 11K)
- JPEG support -
--jpeg for even smaller files
Realistic expectations
Screenshots give Claude a starting point, not a magic replication button.
When you screenshot stripe.com and say "build something like this," Claude will:
- Get the general layout and vibe
- Pick up color schemes and spacing patterns
- Use it as inspiration for structure
Claude won't:
- Produce a pixel-perfect clone
- Replicate complex animations or interactions
- Match every font, shadow, and gradient exactly
Think of it like showing a designer a reference site - you'll get something inspired by it, not a copy. The screenshot helps Claude understand what you're going for, then you iterate from there.
For better results: use --dom to capture HTML alongside the screenshot. This gives Claude both the visual and the structure to work with.
Install
From Claude Code:
/plugin marketplace add naieum/claudeshot
/plugin install claudeshot@claudeshot-marketplace
Or manually:
git clone https://github.com/naieum/claudeshot.git ~/.claude-plugins/claudeshot
claude --plugin-dir ~/.claude-plugins/claudeshot
Usage
Basic stuff:
/screenshot # select a region
/screenshot full # whole screen
/screenshot window # click a window
Web pages:
/screenshot --web http://localhost:3000
/screenshot --web https://stripe.com
To save tokens, add --small (1280px) or --tiny (640px):
/screenshot full --tiny
/screenshot --web http://localhost:3000 --small
The --tiny flag cuts file size by about 95%. Still readable, way fewer tokens.
All the flags
--small resize to 1280px width
--tiny resize to 640px width
--resize WxH custom size (e.g. --resize 800x600)
--jpeg save as JPEG instead of PNG (smaller files)
--web URL screenshot a webpage (requires Chrome + Python)
--mobile mobile viewport (390x844)
--tablet tablet viewport (768x1024)
--viewport WxH custom viewport (e.g., 375x667)
--fullpage capture full scrollable page (default)
--web-viewport just the visible viewport
--dom capture page HTML alongside screenshot (web only)
-d, --delay N wait N seconds before capture
-c, --clipboard copy to clipboard too
-t, --tmp save to /tmp instead of .claudeshots
Management:
/screenshot list # show recent screenshots
/screenshot clear # delete session screenshots
/screenshot open # open the folder
Platform support
Works on macOS, Linux, and Windows.
Screen capture:
- macOS uses the built-in
screencapture
- Linux uses whatever you have installed (gnome-screenshot, scrot, maim, etc.)
- Windows uses PowerShell or Snipping Tool
Web screenshots require:
- Chrome (or Chromium)
- Python 3
Uses Chrome DevTools Protocol via a stdlib-only Python script - no npm, no Playwright, no external dependencies.
Configuration
If you want defaults, create .claudeshot.conf in your project:
RESIZE="1280"
WEB_WIDTH=1440
Files
Screenshots go to .claudeshots/ in your current directory. Add it to .gitignore if you don't want them in version control.
Why ClaudeShot over Playwright?
If you have Playwright MCP installed, you might wonder why use this instead. The short answer: dramatically fewer tokens.
| What happens | ClaudeShot | Playwright MCP |
|---|
| Take screenshot | Returns file path (45 bytes) | Returns base64 image inline (524 KB) |
| Response overhead | ~15 tokens | ~150+ tokens + huge image blob |
| Browser state | None (stateless) | Persists in memory |
Actual benchmark (screenshotting example.com):
- ClaudeShot response:
45 bytes
- Playwright response:
524,800 bytes
That's 99.99% less response overhead for the screenshot step. The image tokens are the same when you view it, but Playwright returns the entire image inline as base64 while ClaudeShot just gives you a file path.
Use ClaudeShot for:
- Quick "does it look right?" checks
- Capturing reference designs
- Iterative build-screenshot-fix loops
- Anywhere token efficiency matters