assert_visible
Verifies that a UI element is visible on screen during mobile tests, returning an error when it is not found. Supports matching by text, resource ID, or regex.
Instructions
Assert that an element is currently visible on screen. Returns an error if the element is NOT found.
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": "assert_visible"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text or content-desc; regex full-match — use .* for partial, e.g. 'Sign.*' | |
| device_id | No | Target device ID. If omitted, uses the default device. | |
| resource_id | No | Bare resource-id, e.g. login_button; regex full-match |