Screenshot
screenshotTake a screenshot of the current web page and return it as base64. Optionally save the image to disk.
Instructions
Capture a screenshot of the current page. Returns the image inline as base64. Optionally save to disk with savePath.
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": {
"sessionId": "<sessionId>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| fullPage | No | Capture full scrollable page. | |
| selector | No | CSS selector to capture a specific element. | |
| savePath | No | Optional file path to save the screenshot to disk. If omitted, image is returned inline only. |