capture_screenshot
Captures page or region screenshots and saves large images to a temp file to avoid token limits.
Instructions
Capture a screenshot of the page. Large screenshots (>=1MB) are automatically saved to a temp file to avoid token limits.
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 |
|---|---|---|---|
| clip | No | Capture a specific region. Use get_box_model to get element coordinates. | |
| format | No | Image format. Default: png | |
| quality | No | Compression quality (0-100). Only for jpeg/webp. | |
| filePath | No | Save screenshot to this file path instead of returning data | |
| optimizeForSpeed | No | Optimize for speed over quality | |
| captureBeyondViewport | No | Capture content beyond viewport |