Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involv
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-mobile-automation-940cb208a250 ,按照其中的说明把「mobile-automation」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Tools for driving real phones, emulators and simulators. All tools are
prefixed mobile_.
mobile_list_available_devices and use one of the
returned devices for every subsequent call. If no device is available, ask
the user to connect one (Android: adb devices must show it; iOS:
simulator booted or device paired).mobile_list_elements_on_screen — it returns
the accessibility tree with element labels and coordinates. It is faster,
cheaper, and more reliable than screenshots. Fall back to
mobile_take_screenshot only when elements are missing or you need visual
confirmation (games, canvas-drawn UI, image content).mobile_click_on_screen_at_coordinates, mobile_swipe_on_screen,
mobile_type_keys, mobile_press_button (HOME, BACK, VOLUME, ENTER),
mobile_launch_app / mobile_terminate_app / mobile_list_apps,
mobile_open_url.mobile_type_keys.mobile_save_screenshot when the user wants the image as a file;
mobile_start_screen_recording / mobile_stop_screen_recording for videos.mobile_list_crashes and mobile_get_crash fetch crash logs.mobile_get_screen_size; coordinates are in that space.mobile_login_to_cloud_provider,
then mobile_list_remote_devices / mobile_allocate_remote_device, and
release with mobile_release_remote_device when done. See
https://mobilenext.ai/docs for details.