take_screenshot
Capture a webpage as a PNG or JPEG image with custom viewport size, full-page capture, and adjustable quality.
Instructions
Capture a screenshot of any webpage as PNG or JPEG. Configurable viewport size, full-page mode, and image quality.
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": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to screenshot (e.g., "https://github.com") | |
| width | No | Viewport width in pixels (default: 1280, range: 320-3840) | |
| format | No | Image format: "png" (default) or "jpeg" | |
| height | No | Viewport height in pixels (default: 800, range: 200-2160). Ignored if full_page is true. | |
| quality | No | JPEG quality (default: 80, range: 1-100). Only applies to JPEG format. | |
| full_page | No | Capture the entire scrollable page (default: false) |