screenshot
Capture a screenshot of an Electron app's renderer page by providing session and page IDs, with options to select PNG or JPEG format and adjust quality.
Instructions
Capture a screenshot of a renderer page. Returns a PNG (default) or JPEG image.
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>",
"pageId": "<pageId>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Image format (default png). | |
| pageId | Yes | Page id from list_pages. | |
| quality | No | JPEG quality 0-100 (only for jpeg). | |
| sessionId | Yes | Session id returned by launch_app. |