swebsy_capture
Capture a styled screenshot of the current page at a chosen viewport, save it under .swebsy-agent/screenshots/, and return the file path. Use targetPath to capture a single section for readable detail.
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. |