screenshot
Take a screenshot of the current page or a specific element.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | An element ref from this page's latest get_a11y_tree, such as e5, or f1e3 inside an iframe. | |
| frame | No | A CSS selector for an iframe, or a list of them for nested iframes. selector, label and ref then resolve inside it. | |
| format | No | Image format. Default: "png". | |
| page_id | No | The page to act on, from list_pages or pages_opened. Defaults to the current page. Does not change the current page. | |
| selector | No | CSS selector to screenshot a specific element instead of the page. | |
| full_page | No | Capture full scrollable page (default: false) | |
| session_id | Yes | Browser session ID |