screenshot
Capture a web page or specific element as a PNG image. Use persistent tabs to snap the current page or specify a URL, selector, viewport, and full-page options.
Instructions
Take a screenshot of a web page or a specific element. Returns a PNG image. Supports persistent sessions via tab_id — when using tab_id, url is optional (screenshots the current page).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL to capture (optional if tab_id is provided) | |
| width | No | Viewport width in pixels (default: 1280) | |
| height | No | Viewport height in pixels (default: 720) | |
| tab_id | No | Reuse a persistent tab (from open_tab) instead of opening a new one | |
| timeout | No | Timeout in ms (default: 30000) | |
| selector | No | CSS selector of a specific element to capture | |
| full_page | No | Capture the full scrollable page (default: false) |