Skip to content

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.

ParameterTypeRequiredDefaultDescription
deviceIdstringYesThe UDID of the target simulator (must be booted).
textstringYesThe text to type into the focused input field.

“Type the test username into the login field”

{
"deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789",
"text": "testuser@example.com"
}

“Type ‘coffee shops nearby’ into the search bar”

{
"deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789",
"text": "coffee shops nearby"
}

“Enter the shipping address in the text field”

{
"deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789",
"text": "1 Infinite Loop, Cupertino, CA 95014"
}

“Type a message in the chat input”

{
"deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789",
"text": "Hey! Are we still meeting at 3pm today?"
}
Text input sent successfully.
Device: iPhone 16 Pro (F3A1B2C3-D4E5-6789-ABCD-EF0123456789)
Text: testuser@example.com
  • simulator_list — Find simulator UDIDs for the deviceId parameter
  • app_launch — Launch an app before interacting with its input fields
  • simulator_ui_tap — Tap on a text field to focus it before typing