Element Context
element_contextInspect a selected UI element's geometry, ancestry, siblings, and collisions to identify layout issues like overlaps or clipping. Choose the element by resource-id or text.
Instructions
Deep dive on one node: its geometry, ancestry, siblings and collisions.
selector matches a resource-id, then exact text, then a substring of
text or content-desc.
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": {
"selector": "<selector>"
},
"name": "element_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| selector | Yes | ||
| xml_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||