screenshot
Capture the client or a specific element and map image pixels to CSS coordinates for accurate click and hover positioning.
Instructions
Screenshot of the client (or one element). At the default scale one image pixel = one CSS px, so image coordinates can be passed to click/hover as x/y.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Ref from the last `snapshot` (e.g. "e12"). Most reliable. | |
| save | No | Also write the image to this file path. | |
| text | No | Visible text or label of the element (case-insensitive substring). | |
| scale | No | Relative to CSS px (default 1). | |
| format | No | ||
| quality | No | JPEG quality (default 80). | |
| selector | No | CSS selector. Searches inside every shadow root; use " >>> " to step into a specific shadow root. |