Manage Window
manage_windowGet or change browser window size, position, and state. Set exact dimensions or maximize/minimize to control the viewport during automation.
Instructions
Get or change browser window geometry or state.
Args: action: - "get_rect": Return the current window position and size. - "set_rect": Set x, y, width, and height. All four are required. - "maximize": Maximize the browser window. - "minimize": Minimize the browser window.
x: Horizontal screen position for "set_rect".
y: Vertical screen position for "set_rect".
width: Window width for "set_rect".
height: Window height for "set_rect".Notes:
Use this tool for browser-window geometry and state.
Use manage_tabs for switching between browser tabs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| width | No | ||
| action | No | get_rect | |
| height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |