android-interact

Interact with the Android device — tap, type text, swipe, scroll, press keys, navigate

When to use

Use this skill when you need to perform actions on the device: tapping buttons, entering text, scrolling, swiping, pressing hardware/soft keys, or launching/stopping apps.

Tools

ToolPurpose
android_tapTap by coordinates, text match, or resource ID. Supports long press.
android_typeType text into the focused field. Optional clear_first to replace.
android_swipeSwipe between two coordinates with optional duration.
android_scrollScroll up or down on the current screen.
android_keyPress a key: back, home, enter, tab, or any KEYCODE_*.
android_appLaunch, stop, or check status of an app by package name.

Best practices

  • Prefer text-based tap (android_tap with text param) over coordinates when possible — it's resolution-independent
  • Always use android_look first to identify element positions before tapping coordinates
  • After typing, the keyboard may cover elements — use android_key back to dismiss, or scroll
  • For navigation: android_key back goes back, android_key home goes to launcher
  • Long press: use long_press_ms param on android_tap (e.g., 1000 for 1 second)

Examples

"Tap the Login button" → android_tap { text: "Login" }
"Type my email" → android_type { text: "[email protected]" }
"Scroll down" → android_scroll { direction: "down" }
"Go back" → android_key { key: "back" }
"Open Chrome" → android_app { action: "launch", package: "com.android.chrome" }