android_assert
Poll the Android UI hierarchy for a target element while monitoring logcat for crashes or ANRs, so you can verify UI state during automation.
Instructions
Poll UI hierarchy for a target element while watching logcat for crashes/ANRs.
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": "android_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| package | No | ||
| resource_id | No | ||
| timeout_sec | No | ||
| poll_interval_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| matched | No | ||
| elapsed_sec | No | ||
| matched_ref | No |