input_text
Type text into an Android device's input field, with options to auto-tap the send button and target a specific field by label, resource ID, or content description for precise interaction.
Instructions
Type text into the input field. Reports device context (screen, app, session). When submit=true, auto-detects and taps the send button. Optionally target a specific input field by text label, resource ID, or content description instead of auto-focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to type | |
| serial | No | Device serial number | |
| submit | No | Auto-tap send/submit button after typing (for chat/messaging apps) | |
| elementId | No | Target a specific input by resource ID | |
| elementText | No | Target a specific input by its label text (e.g. 'Full Name', 'City/Domicile') | |
| elementContentDesc | No | Target a specific input by content description |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focused | No | Whether an input field was auto-focused | |
| message | Yes | Human-readable description of the action performed | |
| success | Yes | Whether the input action was dispatched to the device | |
| screenOn | Yes | Whether the screen was on before this action | |
| currentApp | Yes | Package name of the foreground app | |
| submitUsed | No | Whether a submit button was tapped after typing | |
| sessionActive | Yes | Whether scrcpy session was active |