screenshot
Captures images from URLs or local files and saves them to a chosen path, with viewport, delay, full-page, and selector-wait options.
Instructions
Take a screenshot of a URL or local file path
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>",
"outputPath": "<outputPath>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to capture (e.g., http://localhost:3000 or https://example.com) | |
| delay | No | Delay in milliseconds before capturing (default: 0) | |
| width | No | Viewport width in pixels (default: 1280) | |
| height | No | Viewport height in pixels (default: 720) | |
| fullPage | No | Capture full scrollable page (default: false) | |
| outputPath | Yes | Path to save the screenshot (e.g., /path/to/screenshot.png) | |
| waitForSelector | No | Wait for a specific CSS selector before capturing |