screenshot
Capture URLs, HTML, or Markdown as images using device emulation, full-page mode, and ad blocking. Inject custom CSS/JavaScript and target specific elements for precise rendering.
Instructions
Take a screenshot of a URL or render HTML/Markdown and return the image. Supports full-page capture, device emulation, dark mode, element selection, custom CSS/JS injection, ad/cookie-banner blocking, and more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL to screenshot. Required unless html or markdown is provided. | |
| html | No | Raw HTML to render and screenshot. Alternative to url. | |
| markdown | No | Markdown to render and screenshot. Alternative to url. | |
| format | No | Output image format (default: png). | |
| quality | No | Image quality 1–100 for jpeg/webp (default: 80). | |
| width | No | Viewport width in pixels (default: 1280). | |
| height | No | Viewport height in pixels (default: 800). | |
| fullPage | No | Capture the full scrollable page (default: false). | |
| selector | No | CSS selector to capture a specific element. | |
| delay | No | Milliseconds to wait after page load before capture (0–30000). | |
| waitUntil | No | When to consider the page ready (default: load). Use networkidle for SPAs. | |
| darkMode | No | Render with dark color scheme (default: false). | |
| blockAds | No | Block ad networks (default: false). | |
| blockCookieBanners | No | Block cookie consent popups (default: false). | |
| css | No | Custom CSS to inject before capture. | |
| javascript | No | Custom JavaScript to execute before capture. | |
| device | No | Device preset (e.g. iphone-15-pro, macbook-pro-16, pixel-8). Overrides width, height, scale, and mobile settings. Use the list_devices tool to see all presets. | |
| hideSelectors | No | CSS selectors of elements to hide before capture. |