Loading...
Loading...
Use ADB to interact with an Android device or emulator. Takes a screenshot, understands the screen, performs actions (tap, swipe, type, navigate), and loops until the mission is complete.
npx skill4agent add morphet81/cheat-sheets adb/adb <mission>adbadb devicesAskUserQuestion-s <serial>adb$ARGUMENTS$ARGUMENTSAskUserQuestionmkdir -p .tmp && adb exec-out screencap -p > .tmp/screen.pngReadadb shell uiautomator dump /sdcard/ui.xml && adb pull /sdcard/ui.xml .tmp/ui.xml.tmp/ui.xml| Action | Command |
|---|---|
| Tap at coordinates | |
| Swipe | |
| Type text | |
| Press Back | |
| Press Home | |
| Press Enter | |
| Press Recent Apps | |
| Launch an app | |
| Open a URL | |
| Long press | |
bounds[0,200][1080,350]540,275adb shell input swipe 540 1500 540 500 300sleep 1keyevent 4adb shell input swipe 540 1800 540 800adb logcat -d -t 50## Mission Complete
<description of what was accomplished>
Final state: <what's currently on screen>
Actions taken: <count> stepsrm -f .tmp/screen.png .tmp/ui.xmladbadb devicesadb shell wm size