Capture website screenshot
capture_screenshotCapture viewport, full-page, or element screenshots of live websites to inspect design details and enable accurate replication.
Instructions
Open a website in Chromium and return a screenshot the agent can look at: the viewport, the full page, or a single element by selector. Optionally saves the image to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http:// or https:// URL to capture. | |
| mode | No | What to capture. | viewport |
| selector | No | CSS selector, required when mode is 'element'. | |
| timeoutMs | No | Navigation timeout in milliseconds. | |
| userAgent | No | Optional browser user-agent override. | |
| waitUntil | No | Page lifecycle event to await before extraction. | domcontentloaded |
| autoScroll | No | Scroll through the page before extraction to trigger lazy-rendered content. | |
| maxScrolls | No | Maximum viewport-sized scroll steps when autoScroll is enabled. | |
| outputPath | No | Absolute file path to also save the image to. | |
| maxHeightPx | No | Full-page captures taller than this are clipped. | |
| viewportWidth | No | Browser viewport width in CSS pixels. | |
| viewportHeight | No | Browser viewport height in CSS pixels. | |
| allowPrivateNetwork | No | Allow localhost and private-network URLs. Enable only for trusted sites. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |