Resize or move the browser window
browser_set_window_sizeSet the Firefox window position and size in screen pixels. Read current geometry first, then move or resize the window; use viewport settings for page dimensions.
Instructions
Set the client window position and size through BiDi (browser.setClientWindowState). Read the current geometry with browser_list_windows first. These are window pixels, not page pixels — use browser_set_viewport when you mean the page viewport instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge in screen coordinates | |
| y | No | Top edge in screen coordinates | |
| width | No | Window width | |
| height | No | Window height | |
| clientWindow | No | Client window id. MEASURED: these ids are regenerated per session, so an id read in an earlier call is stale — omit this and the tool acts on the ACTIVE window, which is usually what you want. |