vm_ui_act
Finds a matching UI element in a VM window by name, role, or AutomationId and acts on it via UI Automation—invoke, set value, toggle, select, expand, collapse, or focus—without coordinates.
Instructions
Finds the nth element (depth-first) of a window (default: foreground) whose name (exact, case-insensitive), role (e.g. Button, Edit) and id (AutomationId) match the given ones, and acts on it through UI Automation, with no coordinates. action: invoke (click a button or menu item), set_value (needs value; text boxes), toggle, select, expand, collapse, focus. If nothing matches, the error lists candidate elements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vm": "<vm>",
"action": "<action>"
},
"name": "vm_ui_act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| vm | Yes | ||
| nth | No | ||
| hwnd | No | ||
| name | No | ||
| role | No | ||
| value | No | ||
| action | Yes |