Take screenshot
swebsy_captureCaptures styled screenshots at mobile, tablet, desktop, or wide viewports and returns the saved file path. Scope to a target component to verify section detail without whole-page downscaling.
Instructions
Capture a styled screenshot of the current page at a fixed viewport, written under .swebsy-agent/screenshots/. Returns the file path. 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. |