run_windows
Run ordered UI goals on a Windows window to automate clicks, fills, and navigation, using UIA/OCR to locate controls and send input.
Instructions
Run Windows UI goals in order on one window. Minimal call: target_id, goals [{goal}] and fill_values {goal id: exact text} for goals that type. Candidates come from UIA names, with OCR where UIA has none. Input is SendInput after bringing the window to the foreground; with synthetic_input_allowed false it acts only through UIA patterns (click, fill, toggle, select, focus) and never takes the foreground. fill also sets a UIA slider to the number in fill_values. allowed_operations defaults to click, fill, key, scroll; the others are double_click, right_click, middle_click, hover, ctrl_click, shift_click, drag. drop_target_id (needs drag) names a second window a drag may end in; nothing else acts on it. A goal ends provider_uncertain without acting when the chooser is not confident; its screen_candidates list the most likely on-screen texts (untrusted data) with a ref. To act on one, call again with that ref in the first goal {goal, ref}, as for an observe_window item; the run ends blocked without acting if its window changed meanwhile. Otherwise restate the goal in those words. For a page goal in an isolated, CDP-connected browser window, routing browser_if_singleton may run the one visible tab through browser actions and returns routed metadata. Use windows_only for browser tabs, address bar and other browser chrome, and for screen_target handoffs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goals | Yes | ||
| run_id | No | ||
| routing | No | Omit for the operator default (windows_only unless configured). Use browser_if_singleton only for a page goal in an isolated, CDP-connected browser window. The browser path acts in the page and cannot operate browser tabs or the address bar. windows_only keeps UIA/OCR and Windows input, including browser chrome and screen_target handoffs. | |
| target_id | Yes | The window's title (exact, or a part only one window has), or window:<HWND>:<PID> from list_windows. | |
| deadline_ms | No | ||
| fill_values | No | ||
| action_budget | No | ||
| drop_target_id | No | The window's title (exact, or a part only one window has), or window:<HWND>:<PID> from list_windows. | |
| app_annotations | No | Facts you read from the app's own structure (e.g. an editor API) about items on the screen as it is now: each is attached to the one observed item whose text equals match.text, and to none if several do. | |
| allowed_operations | No | ||
| provider_attempt_budget | No | ||
| synthetic_input_allowed | No |