take_screenshot
Capture PNG screenshots of the current page. Use fullPage to capture the entire page, or keep default for the visible viewport.
Instructions
Take a PNG screenshot of the current page. By default captures the visible viewport; with fullPage=true, uses CDP Page.getLayoutMetrics and Page.captureScreenshot to capture the full page.
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 |
|---|---|---|---|
| page | No | Optional page/tab ID to use | |
| fullPage | No | When true, capture the full page using CDP Page.captureScreenshot; when false or omitted, capture the visible viewport. |