input_text
Type text into a mobile UI field, optionally focusing by selector, then wait for screen to settle and return a fresh snapshot. Ensures accurate text entry for tests.
Instructions
Type text into a field (optionally focus it first by selector). Uses ADBKeyboard for reliability. Waits for the screen to settle, then returns a fresh snapshot — annotated if it never settled.
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": {
"value": "<value>"
},
"name": "input_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Bare resource-id (Compose testTag), regex full-match | |
| text | No | Visible text or content-desc, regex full-match | |
| index | No | Pick the Nth match (0-based) | |
| value | Yes | Text to type | |
| optional | No | If true, a miss does not error | |
| device_id | No |