take_screenshot
Capture the current page viewport or a targeted element as PNG image data. Specify a CSS selector to screenshot a specific element, or omit it to capture the full visible page.
Instructions
Take a screenshot of the current page viewport or a specific element and return PNG image data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | Optional selector to capture only a specific element. If omitted, captures the whole viewport. | |
| strategy | No | Strategy to find element (css, xpath, id, name, tag, class, text, partialText). Default: css | css |