简介
adb controller
原始描述
Control an Android device via ADB. Use when the user asks to control an Android device, tap, swipe, input text, or perform actions via adb. Automatically use...
通过你的 Agent 添加
安装目录:adb-controller/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: adb-controller
description: Control an Android device via ADB. Use when the user asks to control an Android device, tap, swipe, input text, or perform actions via adb. Automatically uses the adbServer configured in openclaw.json and takes screenshots.
ADB Controller
This skill allows you to execute ADB (Android Debug Bridge) commands on a connected Android device and automatically retrieve a screenshot of the result.
Configuration
The user can configure the target ADB device/server in their openclaw.json (this is automatically read by the script):
{
"skills": {
"entries": {
"adb-controller": {
"adbServer": "192.168.1.100:5555" // or device serial
}
}
}
}
Usage
To run an ADB command, execute the provided Python script:
python3 ~/.openclaw/workspace/skills/adb-controller/scripts/run_adb.py shell input tap x y
You can pass any standard ADB arguments to the script. For example:
python3 .../run_adb.py shell input text "hello"python3 .../run_adb.py shell input keyevent 26(Power button)python3 .../run_adb.py shell swipe 500 1000 500 500
Workflow (Mandatory)
- Understand the user's intent and determine the correct ADB command.
- Execute the user's requested action using the
run_adb.py script via the exec tool.
- The script will output the path to a newly captured screenshot.
- Send the Image: You MUST use the
message tool (with action="send" and media="<path-to-screenshot>") to send the resulting screenshot to the user, allowing them to see the outcome of the action. Do not just output the file path.
run_adb.py script via the exec tool.message tool (with action="send" and media="<path-to-screenshot>") to send the resulting screenshot to the user, allowing them to see the outcome of the action. Do not just output the file path.正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。