get_window_region
Return visibility and region of a macOS app's front window. Use before recording to confirm the window is on screen and sufficiently visible, avoiding partial or minimized windows.
Instructions
Return the visible front-window region for a macOS app.
Use this before macOS app or browser recording to verify the target window
is on screen, active, and sufficiently visible. The default
min_visible_ratio is 0.8; lower it only when partial visibility is
intentional.
The response includes visible, visible_ratio, region, frame, and screen
details. If visible is false, reposition or unminimize the window before
calling start_app_window_recording.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_name | Yes | Exact macOS application name (e.g. 'Google Chrome'). | |
| padding | No | Pixels added to all sides of the window region. Default 0. | |
| min_visible_ratio | No | Minimum visible_ratio to treat the window as usable. 0.0-1.0, default 0.8. | |
| activate | No | Activate the app before measurement. Set False only when measuring a background window intentionally. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||