Take screenshot
swebsy_captureCapture a styled screenshot of the current page at a fixed viewport and return it as an image you can see. Scope it with targetPath when verifying ONE section — a whole-page PNG downscales so far that component detail is unreadable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| viewport | Yes | mobile=390px, tablet=768px, desktop=1280px, wide=1536px. | |
| targetPath | No | Optional. Capture only the component at this read_page target path (e.g. [3] for the fourth section) instead of the whole page. | |
| selectionOnly | No | Capture only the selected component instead of the full page. |