Usage
Description
Maximizes an application window to fill the screen or expand to its optimal size (zoom). The behavior depends on the operating system and application. 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
Maximize focused window
Maximize specific app
Maximize and restore
Toggle maximize
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 maximize window
Platform Differences
macOS
- Triggers the “zoom” action (green window button)
- Behavior varies by app: some fill the screen, others expand to optimal content size
- Does not enter fullscreen mode (use keyboard shortcut
cmd+ctrl+ffor that)
Windows (Planned)
- Maximizes window to fill the entire screen
- Equivalent to clicking the maximize button or pressing
Win+Up
Notes
- Maximize behavior depends on the application’s implementation
- Some apps may not support maximize/zoom
- Use
restoreto return window to its previous size - On macOS, requires Accessibility permission
- If multiple windows exist for the app, the first one is maximized