Wait for a UI control
sandbox_ui_waitWaits for a specified UI control to appear and returns the matching element, or reports a timeout error if the control is not found.
Instructions
Wait until a control matching name / automationId / controlType appears (e.g. a result label, a dialog, a finished state). Returns the element, or an error after timeoutSec.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sandbox_ui_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Process whose windows to search (from sandbox_launch). | |
| name | No | Element name (visible label), exact match; falls back to contains. | |
| timeoutSec | No | Default 30. | |
| controlType | No | Button, Edit, CheckBox, ComboBox, ListItem, MenuItem, TabItem, Text, ... | |
| windowTitle | No | Or: a window whose title contains this text. | |
| automationId | No | AutomationId (control name in WinForms/WPF), exact match. |