set_viewport_size
Resize an Electron app's viewport for a test session by specifying session ID, width, and height, so visual and layout checks run at target dimensions.
Instructions
Set the viewport size
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>",
"width": "<width>",
"height": "<height>"
},
"name": "set_viewport_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| sessionId | Yes |