Capture a screenshot
capture_screenshotCaptures a page or selected element as an image so you can inspect text inside images, icon contrast, or layout details when collected evidence lacks visual context.
Instructions
Returns a screenshot of the page, or of the element given by selector, as an image. Use it when the overview from collect_evidence lacks detail: to read text inside images, check icon contrast or look at an element named in a finding. Set width to 320 to see the reflowed layout.
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": {
"url": "<url>"
},
"name": "capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too. | |
| width | No | Viewport width in CSS px. Default 1280. | |
| height | No | Viewport height in CSS px. Default 720. | |
| waitMs | No | Extra time to wait after load, in milliseconds. | |
| fullPage | No | Whether to capture the full page. Default false (viewport only). Ignored when selector is given. | |
| selector | No | Capture only the element matching this CSS selector. Omit to capture the page. | |
| waitForSelector | No | After load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render. |