📱 OpenClaw Node 设备控制教程

远程摄像头、屏幕录制、文件传输——一个AI管所有设备

导读:想让AI帮你远程拍照?想在电脑上查看手机屏幕?OpenClaw的Node系统让你的手机、平板、电脑都变成AI的"眼睛"和"手"。本教程详解设备配对和远程控制。

📋 功能介绍

OpenClaw Node是一个设备管理和远程控制系统:

🔧 设备配对

Step 1: 安装OpenClaw App

# iOS
App Store 搜索 "OpenClaw"

# Android
Google Play 搜索 "OpenClaw"

# 或从官网下载
https://openclaw.ai/download

Step 2: 配对设备

# 方式一:扫码配对
# 在Gateway上生成配对码
openclaw node pair --generate

# 手机App扫描二维码即可配对

# 方式二:手动配对
openclaw node pair --code "ABC123"

# 查看已配对设备
openclaw node list

Step 3: 设备权限配置

# 设备需要授权以下权限:
# - 摄像头(拍照/录像)
# - 麦克风(录音)
# - 位置(GPS)
# - 通知(读取/操作)
# - 文件(读写)
# - 屏幕(截屏/录制)

# 在App中逐个授权

📸 摄像头控制

# 远程拍照
nodes.action = "camera_snap"
nodes.node = "my-phone"
nodes.facing = "back"  # front/back/both

# 拍照参数
nodes.maxWidth = 1920
nodes.quality = 85
nodes.delayMs = 0  # 延迟拍摄

# 列出可用摄像头
nodes.action = "camera_list"
nodes.node = "my-phone"

# 录制短视频
nodes.action = "camera_clip"
nodes.node = "my-phone"
nodes.duration = "10s"
nodes.facing = "back"

🖥️ 屏幕控制

# 截屏
nodes.action = "screen_record"
nodes.node = "my-phone"
nodes.duration = "0"  # 0=单帧截图

# 录制屏幕
nodes.action = "screen_record"
nodes.node = "my-phone"
nodes.duration = "30s"
nodes.includeAudio = true

# 获取最新截图
nodes.action = "photos_latest"
nodes.node = "my-phone"
nodes.limit = 5

📁 文件传输

# 从设备下载文件
file_fetch.action = "fetch"
file_fetch.node = "my-phone"
file_fetch.path = "/storage/emulated/0/DCIM/photo.jpg"

# 上传文件到设备
file_write.action = "write"
file_write.node = "my-phone"
file_write.path = "/storage/emulated/0/Download/report.pdf"
file_write.contentBase64 = "base64_content..."

# 浏览设备目录
dir_list.action = "list"
dir_list.node = "my-phone"
dir_list.path = "/storage/emulated/0/"

🔔 通知与位置

# 查看设备通知
nodes.action = "notifications_list"
nodes.node = "my-phone"
nodes.limit = 20

# 操作通知(打开/关闭/回复)
nodes.action = "notifications_action"
nodes.node = "my-phone"
nodes.notificationKey = "notification_id"
nodes.notificationAction = "open"  # open/dismiss/reply

# 获取设备位置
nodes.action = "location_get"
nodes.node = "my-phone"
nodes.desiredAccuracy = "precise"  # coarse/balanced/precise

# 设备状态
nodes.action = "device_status"
nodes.node = "my-phone"

💡 最佳实践

🔒 安全第一:设备配对后拥有较高权限。建议只配对自己的设备,并在不需要时断开连接。定期检查已配对设备列表。
⚡ 性能优化:摄像头和屏幕录制是高耗能操作。拍照后及时断开连接,避免长时间保持活跃状态消耗电量。
⚠️ 隐私提醒:远程摄像头和屏幕录制涉及隐私。在使用前确保已获得设备所有者的明确授权。不要在未经允许的情况下对他人设备进行操作。

📊 设备能力矩阵

能力iOSAndroidDesktop
摄像头拍照✅(如有摄像头)
屏幕录制✅(需权限)
文件传输⚠️(沙盒限制)
通知管理⚠️(有限)
GPS定位⚠️(需浏览器)
电池状态✅(笔记本)

🔗 相关链接

🔗 相关推荐

📄 文章
OpenClaw 入门指南
📄 文章
OpenClaw 完全教程
📄 文章
OpenClaw 最佳实践
📄 文章
OpenClaw 自动化工作流
📄 文章
OpenClaw 配置详解

📚 相关推荐阅读

📄 文章
OpenClaw 入门
📄 文章
自动化工作流
🛠️ 工具指南
浏览器自动化