android_uiautomator_set_text
Set text on Android UI elements by resource ID using UIAutomator automation. Input text into text fields, forms, or input boxes during Android app testing.
Instructions
Set text on a UI element by resource ID using UIAutomator
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>",
"text": "<text>"
},
"name": "android_uiautomator_set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | Resource ID of the element (e.g., com.example.app:id/text_input) | |
| text | Yes | Text to set in the element | |
| deviceSerial | No | Specific device serial number to target (optional) |