UI Automation tree
sandbox_ui_treeRead an app's accessibility (UI Automation) tree to locate controls by name, automation ID, value, or toggle state. Reads all top-level windows when no process ID or window title is given.
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. |