vm_ui_tree
Retrieves a VM window's UI Automation tree as compact JSON so you can inspect controls, text, roles, and bounds without relying on screenshots.
Instructions
The UI Automation tree of a window (default: the foreground one) as compact JSON: role, name, id (AutomationId), class, x, y, width, height, enabled, focused, offscreen, value, children. Empty fields are left out; truncated=true at the root means max_nodes was hit. Read controls and their text exactly this way instead of screenshots when possible.
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>"
},
"name": "vm_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| hwnd | No | ||
| max_depth | No | ||
| max_nodes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |