agent-device
بواسطة okwasniewski
Browser & Automationموجز
Automates interactions for iOS simulators/devices and Android emulators/devices.
الوصف
ما الذي تفعله هذه المهارة
Automates interactions with iOS simulators, iOS physical devices, Android emulators, and Android devices. Supports tapping, typing, scrolling, screenshots, UI snapshots, and log collection. Can run sequences as batch scripts or replay saved sessions.
Handles both iOS and Android targets through a single CLI interface, eliminating the need to switch between platform-specific tools for cross-platform mobile automation.
متى تستخدمها
- Automating a login flow on an iOS simulator
- Taking a screenshot of a specific app screen on Android
- Debugging a crash by capturing logs after reproducing steps
- Verifying UI elements are visible after a navigation action
- Replaying a saved interaction script after an app update
مثال على سير العمل
User asks: open the Settings app on iOS, tap the first element, type 'test' into a field, and take a diff snapshot
- 1
Run
agent-device open Settings --platform iosto start a session - 2
Run
agent-device snapshot -ito capture the current UI tree with interactive refs - 3
Run
agent-device press @e1to tap the first element - 4
Run
agent-device fill @e5 "test"to clear and type into the target field - 5
Run
agent-device diff snapshot -ito compare the updated UI state
Diff snapshot showing UI changes after the interaction sequence
المتطلبات
- agent-device binary installed (or pinned version via npx)
- iOS: Xcode and iOS Simulator or provisioned physical device
- Android: Android SDK and running emulator or connected device
التثبيت
clawhub install okwasniewski/agent-deviceشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.