Capture page screenshot
capture_page_screenshotTake a screenshot of any URL at a chosen viewport, reusing the live session so cookies and logins persist, and get a saved capture path for visual verification.
Instructions
Screenshot a URL at one breakpoint. Opens or navigates the persistent session — cookies, logins and page state survive across calls, and re-requesting the already-open URL does not reload it. The full-resolution render is always saved under .agent-eyes/captures/ and its path reported; format, quality, maxWidth and sizeMode control what the wire image costs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL to open, e.g. http://localhost:5173. | |
| format | No | webp (default) and jpeg are lossy and cheap; png is lossless and 3-5x more tokens. | webp |
| reload | No | Reload even if the URL is already open (default reuses it, so it can be stale after an edit). | |
| quality | No | Lossy quality 1-100 (default 75). Lower = fewer tokens. Ignored for png. | |
| fullPage | No | Capture the whole scrollable page instead of the visible fold. Clipped at 7900px, and the truncation is reported. | |
| maxWidth | No | Downscale the returned image to this width before encoding — the strongest token lever. The copy saved to disk stays full resolution. | |
| sizeMode | No | What goes over the wire: "full-res" (default), or "thumb" for a 480px webp. Disk always gets the full-resolution image. | full-res |
| viewport | Yes | Breakpoint: mobile 393x852, tablet 768x1024, desktop 1440x900, ultrawide 1920x1080. |