mobile-automation
它能做什么
这个技能让 AI 操控真实手机、模拟器或模拟器,例如打开应用或点击按钮。适合需要在手机上检查或重现漏洞的测试人员和开发者。
适用场景
- ✓你需要在 Android 或 iPhone 应用上重现漏洞的时候。
- ✓你想让 AI 测试移动应用的界面并报告它所看到的内容的时候。
- ✓任务需要在手机应用中逐步点击、输入或滑动的时候。
技能链接
https://github.com/mobile-next/mobile-mcp/blob/main/skills/mobile-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在模拟器上打开我们的 Android 应用,进入登录界面,并告诉我按钮是否可见。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能将 AI 连接到设备,读取屏幕上的元素列表,然后进行点击或输入。每一步之后,它都会检查屏幕是否按预期变化。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Mobile Automation with Mobile MCP
Tools for driving real phones, emulators and simulators. All tools are
prefixed mobile_.
Workflow
- Pick a device. Call
mobile_list_available_devicesand use one of the returned devices for every subsequent call. If no device is available, ask the user to connect one (Android:adb devicesmust show it; iOS: simulator booted or device paired). - See the screen. Prefer
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 tomobile_take_screenshotonly when elements are missing or you need visual confirmation (games, canvas-drawn UI, image content). - Act.
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. - Verify after every action. Re-list elements (or re-screenshot) to confirm the UI changed as expected before the next step. Mobile UIs animate; if the expected element is not there yet, wait briefly and check again rather than tapping blind.
Tips
- Click the center of an element's bounds, not its top-left corner.
- To type, first tap the input field, confirm it is focused, then
mobile_type_keys. - Use
mobile_save_screenshotwhen the user wants the image as a file;mobile_start_screen_recording/mobile_stop_screen_recordingfor videos. - App crashed?
mobile_list_crashesandmobile_get_crashfetch crash logs. - Screen size from
mobile_get_screen_size; coordinates are in that space. - Real devices in the cloud (no local hardware):
mobile_login_to_cloud_provider, thenmobile_list_remote_devices/mobile_allocate_remote_device, and release withmobile_release_remote_devicewhen done. See https://mobilenext.ai/docs for details.
常见问题
需要实体手机吗?
不需要。这个技能既支持真实设备,也支持模拟器和模拟器。
为什么读取屏幕元素,而不是截图?
这个技能指出,元素列表更快、更可靠,截图只作为备用方式。
我需要先设置什么?
设备必须已连接或已启动。Android 设备必须出现在 adb 设备列表中,iOS 则需要正在运行的模拟器或已配对的设备。
详情
作者的原始描述
Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involves a mobile device or app, mobile UI testing, or reproducing a bug on a phone.
repo: mobile-next/mobile-mcp
热度
- GitHub 星标
- 10k
- 排名
- #11994
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …