UI Automation tree
sandbox_ui_treeRead an app's UI Automation tree in the sandbox to locate controls by pid or window title, with type, name, automation ID, value, toggle state, and available actions—no screenshot needed.
Instructions
Read the accessibility (UI Automation) tree of an app in the sandbox: one line per control with type, "name", #automationId, = value, [x] toggle state and {available actions}. Much cheaper and more precise than a screenshot for finding controls. Without pid/windowTitle it reads every top-level window (can be large).
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_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Process whose windows to search (from sandbox_launch). | |
| json | No | Return raw JSON (with screen rects) instead of the outline. | |
| depth | No | Max depth (default 12). | |
| maxNodes | No | Max elements (default 400). | |
| windowTitle | No | Or: a window whose title contains this text. |