keyboard_input
Type a string of text into the currently focused input field on an iOS simulator. This simulates keyboard input as if the user were physically typing, making it useful for filling in forms, search bars, login screens, and other text-entry flows during automated testing or demonstrations.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
deviceId | string | Yes | — | The UDID of the target simulator (must be booted). |
text | string | Yes | — | The text to type into the focused input field. |
Usage Examples
Section titled “Usage Examples”Type a username into a login form
Section titled “Type a username into a login form”“Type the test username into the login field”
{ "deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789", "text": "testuser@example.com"}Enter a search query
Section titled “Enter a search query”“Type ‘coffee shops nearby’ into the search bar”
{ "deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789", "text": "coffee shops nearby"}Fill in a street address
Section titled “Fill in a street address”“Enter the shipping address in the text field”
{ "deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789", "text": "1 Infinite Loop, Cupertino, CA 95014"}Type a multi-line message
Section titled “Type a multi-line message”“Type a message in the chat input”
{ "deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789", "text": "Hey! Are we still meeting at 3pm today?"}Example Output
Section titled “Example Output”Text input sent successfully.Device: iPhone 16 Pro (F3A1B2C3-D4E5-6789-ABCD-EF0123456789)Text: testuser@example.comRelated Tools
Section titled “Related Tools”simulator_list— Find simulator UDIDs for thedeviceIdparameterapp_launch— Launch an app before interacting with its input fieldssimulator_ui_tap— Tap on a text field to focus it before typing