Usage
Description
Resizes an application window to the specified width and height in pixels. The window is identified by application name (defaults to focused app if not specified).Parameters
New window width in pixels
New window height in pixels
Application name (e.g., “Safari”) — if not specified, operates on the focused application
Response
Examples
Resize focused window
Resize specific app window
Resize to standard dimensions
Resize and verify
Error Codes
APP_NOT_FOUND— Application is not running or has no windowsWINDOW_NOT_FOUND— No window found for the specified applicationINVALID_ARGS— Invalid width or height values (must be positive numbers)ACTION_FAILED— Failed to resize window (some windows may not be resizable)
Notes
- Width and height are in screen pixels
- Some windows have minimum or maximum size constraints
- Fullscreen windows cannot be resized
- On macOS, requires Accessibility permission
- If multiple windows exist for the app, the first one is resized