set_window_rect
Move and/or resize the active window by specifying new screen position and dimensions. Automatically restores the window from maximized or minimized state before applying changes.
Instructions
Move and/or resize the current session's root window. Restores the window to normal state first (move/resize fail while maximized or minimized). Pass null for any of x/y/width/height to leave that dimension unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | New screen x position, or null to leave unchanged | |
| y | Yes | New screen y position, or null to leave unchanged | |
| width | Yes | New width, or null to leave unchanged | |
| height | Yes | New height, or null to leave unchanged |