screenshot
Capture and optimize screenshots from any URL for LLM consumption with automatic resizing, compression, and console error capture.
Instructions
Capture a screenshot from any URL (typically localhost) with automatic optimization for LLM consumption. Handles image resizing and compression to stay within Claude/LLM limits. Captures console errors and warnings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to capture (e.g., http://localhost:3000) | |
| viewport | No | Viewport preset name or custom WxH (e.g., "mobile", "tablet", "desktop", "1280x720"). Available: mobile, mobile-lg, tablet, tablet-landscape, desktop, desktop-lg, desktop-hd | desktop |
| fullPage | No | Capture full scrollable page instead of viewport only | |
| waitFor | No | Wait condition before capture: networkIdle (default), domStable, load, or none | networkIdle |
| waitForSelector | No | CSS selector to wait for before capture (optional) | |
| save | No | Save screenshot to local .deveyes/screenshots/ folder. Use this if the image is not displaying in your client. Can be set as default via DEVEYES_SAVE_SCREENSHOTS=true env variable. |