返回顶部
a

another-android控制安卓设备

Control Android devices from AI agents using the Another MCP server. Use when asked to interact with, test, automate, or take screenshots of an Android device. Provides tools for touch input, text entry, button presses, screenshots, app launching, shell commands, and swipe gestures.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
135
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

another-android

Another - Android设备控制

您可以通过Another MCP服务器访问Android设备。使用这些工具查看屏幕内容、与设备交互以及自动化任务。

设置

必须运行Another桌面应用并启用MCP服务器(默认在设置中开启)。

配置您的MCP客户端:

json
{
mcpServers: {
another: {
url: http://localhost:7070/mcp
}
}
}

工作流程

始终遵循以下顺序:

  1. 1. 列出设备 查看可用设备
  2. 连接 建立控制会话
  3. 截图 查看当前屏幕状态
  4. 操作 使用触摸、文本、按钮、滑动等方式
  5. 再次截图 验证结果
  6. 断开连接 操作完成后

可用工具

设备管理

工具功能说明
anotherlistdevices列出所有已连接的Android设备
anotherconnectdevice
连接到设备(启动scrcpy控制会话) | | anotherdisconnectdevice | 断开当前设备连接 |

观察

工具功能说明
anothertakescreenshot捕获屏幕截图(PNG格式)

输入

工具功能说明
anotherpressbutton按下硬件按钮:home、back、recents、power、volumeup、volumedown
anothersendtext
在聚焦的输入框中输入文本 | | anothersendtouch | 在归一化坐标(0.0-1.0)上发送触摸事件(down、up、move) | | anothersendscroll | 在指定位置按给定增量滚动 | | another_swipe | 从一点滑动到另一点(归一化坐标0.0-1.0) |

应用与Shell

工具功能说明
anotherlaunchapp通过包名启动应用(例如 com.android.chrome)
anotheropenurl
在设备默认浏览器中打开URL | | another_shell | 运行任意adb shell命令并获取输出 |

WiFi

工具功能说明
anotherwifienable将USB设备切换为WiFi调试模式
anotherwificonnect
通过IP地址连接设备 | | anotherwifidisconnect | 断开WiFi设备连接 | | anothergetdevice_ip | 获取USB连接设备的WiFi IP地址 |

坐标系

触摸、滑动和滚动工具使用归一化坐标,范围从0.0到1.0:

  • - (0.0, 0.0) = 左上角
  • (1.0, 1.0) = 右下角
  • (0.5, 0.5) = 屏幕中心

常见模式

点击某个位置

anothersendtouch { action: down, x: 0.5, y: 0.5 }
anothersendtouch { action: up, x: 0.5, y: 0.5 }

点击后验证

  1. 1. anothertakescreenshot (查看屏幕内容)
  2. anothersendtouch (点击目标位置)
  3. anothertakescreenshot (验证结果)

在输入框中输入文本

  1. 1. 使用anothersendtouch点击输入框
  2. anothersendtext { text: hello world }

向下滚动页面

anothersendscroll { x: 0.5, y: 0.5, dx: 0.0, dy: -1.0 }

滑动返回或导航

anotherswipe { fromx: 0.0, fromy: 0.5, tox: 0.5, to_y: 0.5 }

使用按钮导航

anotherpressbutton { button: home }
anotherpressbutton { button: back }
anotherpressbutton { button: recents }

打开应用并交互

  1. 1. anotherlaunchapp { package: com.android.chrome }
  2. 稍等片刻,然后anothertakescreenshot
  3. 按需交互

查找屏幕上的元素

截取屏幕截图,检查以确定位置,然后使用坐标进行交互。截图是了解设备上可见内容的主要方式。

运行Shell命令

another_shell { command: pm list packages }
another_shell { command: dumpsys battery }
anothershell { command: settings get system screenbrightness }

提示

  • - 交互前务必先截图。您需要查看屏幕才能知道点击位置。
  • 操作后截图以确认操作生效。
  • 使用Shell命令处理不需要屏幕的操作(检查电池、列出包、获取设备信息)。
  • 滑动持续时间默认为300毫秒。增加durationms可实现更慢、更谨慎的滑动。
  • 先连接再操作。pressbutton、sendtext、sendtouch、swipe等工具需要通过anotherconnectdevice建立活动连接。
  • listdevices、shell、takescreenshot、wifi_*工具无需scrcpy连接即可工作,它们只需要adb。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 another-1775934011 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 another-1775934011 技能

通过命令行安装

skillhub install another-1775934011

下载

⬇ 下载 another-android v1.0.0(免费)

文件大小: 2.48 KB | 发布时间: 2026-4-12 09:00

v1.0.0 最新 2026-4-12 09:00
Initial release of Another-Android skill for device automation and testing.

- Control Android devices via the Another MCP server using touch, text, buttons, swipes, shell commands, and more.
- Provides tools for device management, screen observation (screenshots), input, app & shell operations, and WiFi debugging setup.
- Uses normalized screen coordinates for all touch and swipe actions.
- Includes clear workflow guidelines, tool descriptions, usage patterns, and tips for effective automation.
- Designed for interacting with, testing, and automating Android devices through AI agents.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部