take_screenshot
Take a screenshot of any webpage. Returns a base64-encoded image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to screenshot | |
| delay | No | Delay in ms before capture | |
| width | No | Viewport width (default: 1280) | |
| clip_x | No | Clip region X offset in pixels | |
| clip_y | No | Clip region Y offset in pixels | |
| format | No | Image format (default: png) | |
| height | No | Viewport height (default: 720) | |
| locale | No | BCP 47 locale tag for the browser context (e.g., "en-US", "de-DE", "ja-JP") | |
| cookies | No | Cookies to set before capture (e.g., [{"name": "session", "value": "abc123"}]) | |
| headers | No | Custom HTTP headers to send with the request (e.g., {"Authorization": "Bearer token"}) | |
| quality | No | Image quality 1-100 (default: 80) | |
| evaluate | No | JavaScript code to execute on the page before capture (max 10KB). Runs in the browser context via page.evaluate(). Use to dismiss modals, click buttons, or set UI state. | |
| latitude | No | Geolocation latitude (-90 to 90). Must be used with longitude. | |
| selector | No | CSS selector to capture specific element | |
| timezone | No | IANA timezone for the browser context (e.g., "America/New_York", "Europe/Berlin", "Asia/Tokyo") | |
| dark_mode | No | Enable dark mode emulation | |
| full_page | No | Capture full page scroll height | |
| longitude | No | Geolocation longitude (-180 to 180). Must be used with latitude. | |
| clip_width | No | Clip region width in pixels | |
| wait_until | No | Page load strategy: "commit" (fastest, response received), "domcontentloaded" (default, DOM ready), "load" (all resources loaded), "networkidle" (no network activity for 500ms — best for SPAs and lazy-loaded content) | |
| clip_height | No | Clip region height in pixels | |
| hide_banners | No | Dismiss cookie banners, consent popups, and overlays before capture | |
| resize_width | No | Resize output image to this width (maintains aspect ratio) | |
| resize_height | No | Resize output image to this height (maintains aspect ratio) | |
| disable_javascript | No | Disable JavaScript execution on the page. Useful for security research, capturing static HTML, or avoiding JS-driven redirects. | |
| ignore_https_errors | No | Ignore HTTPS/TLS certificate errors (useful for dev/staging environments with self-signed certs) |