Smart click (UIA-first)
sandbox_smart_clickClicks a UI control by name or automation ID using an accessibility-first strategy ladder, activating buttons, menu items, and web content that ignore synthesized mouse input, then verifies the effect.
Instructions
Click a control by selector using the UIA-first strategy ladder: Invoke/Toggle/Select/ExpandCollapse pattern, then the legacy IAccessible default action, then UIA focus + Enter (activates web content that ignores synthesized mouse input), then a focus-verified SendInput click at the element. Reports every attempt, the winning strategy and an effect check (element gone / state changed). Prefer this over pixel sandbox_click; querying the element also wakes Chromium accessibility, which makes web pages drivable.
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_smart_click"
}
}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. | |
| index | No | Which match to use when several match (default 0). | |
| verify | No | Effect check: auto (default) = gone or state changed; gone = element must disappear; state = state must change; none = trust the pattern. | |
| timeoutSec | No | Default 15. | |
| 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. |