detect_elements
Enumerate interactive elements in a window via the platform accessibility tree, returning AI-friendly JSON with bounding boxes and centers for GUI automation.
Instructions
Enumerate interactive elements in a window via the platform accessibility tree. Returns AI-friendly JSON with bbox/center.
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": {
"hwnd": "<hwnd>"
},
"name": "detect_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes | ||
| depth | No | ||
| regex | No | ||
| restore | No | call ShowWindow(SW_RESTORE) first (UWP) | |
| max_results | No | ||
| control_type | No | ||
| name_contains | No |