wait_for_window
Wait for a window with a specific title to appear or disappear, then automatically activate it for further actions. Use after opening or closing windows to ensure the next inputs target the correct window.
Instructions
Wait for a window to appear or disappear.
Polls the window list until a window with a matching title is
found (or gone). Use after actions that open or close windows.
When found, auto-activates the window so subsequent type_text
and press_key target it.
Args:
title: Window title to search for (substring match).
app: Only look for windows in this application.
timeout: Maximum seconds to wait (default 10).
gone: If true, wait for the window to DISAPPEAR instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| app | No | ||
| timeout | No | ||
| gone | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |