take_screenshot
Capture the current page or a specific element in Chrome as a PNG, JPEG, or WebP image, with options for full-page, viewport, quality, and file path.
Instructions
Take a screenshot of the page or element.
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": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | Element uid from the latest snapshot. | |
| format | No | ||
| pageId | No | Targets a specific page by ID. Defaults to the selected page. | |
| quality | No | ||
| filePath | No | ||
| fullPage | No | Full page instead of viewport. Incompatible with uid. |