browser_resize
Adjust browser window dimensions to specific width and height values for testing or automation workflows.
Instructions
Resize window
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes |
Implementation Reference
- index.js:434-441 (registration)The browser_resize tool is registered using server.tool, taking width and height as input and proxying the call via proxyToolCall.
server.tool('browser_resize', 'Resize window', { width: z.number(), height: z.number() }, async (args) => { const check = requireActivePage(); if (check) return check; return proxyToolCall('browser_resize', args); });