browser_resize
Resize the browser window by setting width and height in Playwright MCP, enabling AI assistants to test responsive layouts and viewport behavior.
Instructions
Resize the browser window
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": {
"width": "<width>",
"height": "<height>"
},
"name": "browser_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width of the browser window | |
| height | Yes | Height of the browser window |