Capture a screenshot of a renderer
screenshotCapture a PNG or JPEG of a target renderer in an Electron app, returned as base64 for quick-look snapshots.
Instructions
Grab a PNG (or JPEG) of the target renderer via Page.captureScreenshot. Returns base64. Large payloads — encode sparingly and prefer fullPage: false (the default) for quick-look snapshots.
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": {
"id": "<id>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id. | |
| format | No | Image format (default: png). | |
| target | No | Target id from `list_windows`. | |
| quality | No | JPEG quality 0-100 (ignored for png). | |
| fullPage | No | Capture beyond viewport via full-page mode. |