appium_mobile_keyboard
Hide the software keyboard or check its visibility in Android UiAutomator2 and iOS XCUITest sessions to keep mobile UI automation stable.
Instructions
Hide the software keyboard or check if it is visible (Android UiAutomator2 / iOS XCUITest). action=hide uses mobile: hideKeyboard; action=is_shown uses mobile: isKeyboardShown.
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": {
"action": "<action>"
},
"name": "appium_mobile_keyboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | hide only: optional key names to dismiss the keyboard (e.g. "done"). Forwarded to mobile: hideKeyboard when non-empty. Ignored for is_shown. | |
| action | Yes | hide: dismiss the software keyboard (mobile: hideKeyboard). is_shown: whether the keyboard is visible (mobile: isKeyboardShown). | |
| sessionId | No | Session ID; defaults to the active session. |