android_uiautomator_clear_text
Clear text from Android UI elements by resource ID using ADB commands. Remove input field content for testing automation or device control.
Instructions
Clear text from 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_clear_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | Resource ID of the element to clear | |
| deviceSerial | No | Specific device serial number to target (optional) |