verify_element
Check whether a semantic element (by text, description, or ID) exists on the current Android screen, returning true/false for branching logic without errors.
Instructions
Assert whether a semantic target exists on the current screen.
Structured boolean result — never raises for not-found or a text mismatch, so the model can branch on it directly.
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": {
"target": "<target>"
},
"name": "verify_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ADB serial; omit with a single connected device. | |
| target | Yes | {"by": "text"|"desc"|"id", "value": str} — the element to check. | |
| text_predicate | No | optional substring the element label must contain. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||