跳到正文
TakoAPI
返回技能列表

agent-device

由 okwasniewski 提供

Browser & Automation
616下载量由 clawskills.sh 提供
3星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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. 1

    Run agent-device open Settings --platform ios to start a session

  2. 2

    Run agent-device snapshot -i to capture the current UI tree with interactive refs

  3. 3

    Run agent-device press @e1 to tap the first element

  4. 4

    Run agent-device fill @e5 "test" to clear and type into the target field

  5. 5

    Run agent-device diff snapshot -i to 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

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接