screenshot
Capture screenshots of the active browser tab with support for full-page stitching, region clipping, and format selection. Options include base64 encoding for vision models and automatic resizing to avoid dimension limits.
Instructions
Screenshot active tab. Saves to ~/.mcp-stealth/screenshots/.
Args:
filename: output name (default timestamped)
full_page: stitch entire page height (slower, larger file)
return_base64: append base64 body to response (useful for vision models)
format: "auto" (from extension, default), "png" (lossless), or "jpeg" (smaller)
quality: JPEG quality 1-100 (default 80) — ignored for PNG
region: clip to {x, y, width, height} — uses CDP Page.captureScreenshot clip
(skips full-viewport paint, 2-5× faster for small crops)
max_dimension: if either width or height exceeds this (px), the image is
resized proportionally via OpenCV INTER_AREA. Default 1920 keeps output
under the 2000 px per-side limit that LLM image tools (Claude/GPT) enforce
— prevents "image exceeds dimension limit" failures on long full_page
captures or hi-DPR device emulation. Pass 0 to disable resizing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| full_page | No | ||
| return_base64 | No | ||
| format | No | auto | |
| quality | No | ||
| region | No | ||
| max_dimension | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |