take_screenshot
Capture screenshots from a website URL, raw HTML, or Markdown as PNG, JPEG, WebP, or PDF; supports device emulation, dark mode, ad blocking, full-page capture.
Instructions
Capture a screenshot of a website URL, raw HTML, or Markdown content. Provide exactly one of: url, html, or markdown. Returns the image as a PNG, JPEG, WebP, or PDF. Supports device emulation (iPhone, Pixel, iPad), dark mode, ad blocking, cookie banner removal, full-page capture, and custom viewports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to capture (must start with http:// or https://). Mutually exclusive with html and markdown. | |
| html | No | Raw HTML content to render and capture (max 2MB). Mutually exclusive with url and markdown. | |
| cache | No | Use cached result if available. Set to true to enable caching (default: false) | |
| delay | No | Milliseconds to wait after page load (default: 0) | |
| width | No | Viewport width in pixels (default: 1280) | |
| device | No | Device preset for mobile/tablet emulation | |
| format | No | Output format (default: png) | |
| height | No | Viewport height in pixels (default: 800) | |
| quality | No | Image quality for JPEG/WebP, 1-100 (default: 90) | |
| markdown | No | Markdown content to render with a clean styled template and capture (max 500KB). Mutually exclusive with url and html. | |
| block_ads | No | Block advertisements and trackers (default: true) | |
| cache_ttl | No | Cache TTL in seconds, 0-2592000. Clamped to your plan max (default: 86400) | |
| dark_mode | No | Enable dark mode CSS emulation (default: false) | |
| full_page | No | Capture entire scrollable page (default: false) | |
| user_agent | No | Custom user agent string to use for the request | |
| click_selector | No | CSS selector to click before capture | |
| hide_selectors | No | Comma-separated CSS selectors to hide before capture | |
| block_cookie_banners | No | Remove cookie consent banners (default: true) |