Act on a UI control
sandbox_ui_actionFind a UI control by name, automationId, or controlType and act on it via UI Automation: click, set a value, toggle, select, expand, focus, or read its state.
Instructions
Find a control by name / automationId / controlType (any combination) and act on it through UI Automation: click (Invoke, Toggle, Select or ExpandCollapse as appropriate, else a real mouse click), doubleclick, rightclick, setvalue (type into an edit box), toggle, select, expand, collapse, focus, or read (just return its state). Use sandbox_ui_tree first to see names. If a click opens a modal dialog the result is {pending:true}; that is fine.
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_action"
}
}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). | |
| value | No | Text for setvalue. | |
| action | No | Default click. | |
| 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. |