Usage
Description
Restores a window to its normal state, reversing minimize or maximize operations. The window is identified by application name (defaults to focused app if not specified).Parameters
Application name (e.g., “Safari”) — if not specified, operates on the focused application
Response
Examples
Restore focused window
Restore specific app
Restore minimized window
Restore maximized window
Restore and verify window bounds
Error Codes
APP_NOT_FOUND— Application is not running or has no windowsWINDOW_NOT_FOUND— No window found for the specified applicationACTION_FAILED— Failed to restore window
Notes
- Restores window to the size and position it had before minimize/maximize
- Can be called on windows that are already in normal state (idempotent)
- For minimized windows, brings them back from Dock/taskbar
- For maximized windows, returns them to their previous size
- On macOS, requires Accessibility permission
- If multiple windows exist for the app, the first one is restored