Move/Resize Window
window_moveMove or resize a window by setting position and/or dimensions. Returns the verified final frame after the system applies any clamping.
Instructions
Move and/or resize a window. Position/size are set independently — pass only x+y, only width+height, or both. Returns the verified final frame (apps may clamp requested geometry). Requires Accessibility permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | New left edge in global screen points. Requires y to also be set. | |
| y | No | New top edge in global screen points. Requires x to also be set. | |
| width | No | New width in points. Requires height to also be set. | |
| height | No | New height in points. Requires width to also be set. | |
| windowHandle | Yes | A windowHandle from window_list or window_get_active. |