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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"viewport": "<viewport>"
},
"name": "swebsy_capture"
}
}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. |