Check the screen
phone_assertVerifies that specified text or an element ID is visible on screen, or confirms it is absent when visible is false, waiting up to 5 seconds and recording passing checks as test assertions.
Instructions
Check that text (or an element id) is on screen, or with visible false that it is not. Waits up to 5 seconds. While recording, passing checks become assertions in the test.
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": "phone_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Resource id of the element. | |
| text | No | Text that should (or should not) be visible. | |
| serial | No | Which device to use. Only needed when several are connected. | |
| checked | No | For switches and checkboxes: require this on/off state. | |
| visible | No | Default true. |