android_uiautomator_long_click
Perform a long press on Android UI elements using resource IDs to access context menus or extended options during automated testing.
Instructions
Perform a long click on a UI element by resource ID
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": {
"resourceId": "<resourceId>"
},
"name": "android_uiautomator_long_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | Resource ID of the element to long click | |
| deviceSerial | No | Specific device serial number to target (optional) |