capture_screenshot
Capture viewport, full-page, or element screenshots and save them with metadata to an output directory for responsive layout testing and visual verification.
Instructions
Capture a viewport, full-page, or specific element screenshot and save it to the output directory with metadata.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Screenshot type: "viewport", "fullPage", or "element" (default: "viewport"). | |
| width | No | Optional custom viewport width in px. | |
| height | No | Optional custom viewport height in px. | |
| selector | No | CSS selector (required when type is "element"). | |
| filename_prefix | No | Prefix for saved screenshot filename. |