360 Secure SkillHub
360 安全技能中心

Device Control

通过 ctl.js 在本地执行有边界的设备控制:设置或增减音量与亮度(0–100)、从常见应用白名单中打开应用、按精确进程名关闭应用。仅响应用户明确请求,不接受任意 shell 命令、路径或任意应用名,不支持的平台工具直接报错且无回退执行。

iyeque
iyeque
热度 45.91
最近更新 2026-10-10 08:05:44
分类:自动化依赖:代码执行应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add iyeque-device-control
Metadata
name
device-control
description
Bounded local desktop controls for explicit requests: adjust volume or brightness, open an allowlisted application, or close an exact process. Use only when the user clearly asks to control the device.
license
MIT-0
metadata
{"openclaw":{"emoji":"🎛️","requires":{"bins":["node"]},"version":"1.3.1"}}

Bounded device control

Run ctl.js only for an explicit user request. It supports volume, brightness, opening a small safe allowlist of common applications, and closing an exact process name. It never accepts arbitrary shell commands, paths, shell metacharacters, or arbitrary application names.

node ctl.js --action set_volume --value 50
node ctl.js --action change_volume --value -10
node ctl.js --action set_brightness --value 75
node ctl.js --action open_app --app firefox
node ctl.js --action close_app --app firefox

Volume and brightness are 0–100; deltas are -100–100. Opening is limited to common applications such as Firefox, Chrome, Chromium, Edge, VS Code, VLC, Spotify, Calculator, Files, and Terminal. Unsupported platform utilities return an error without fallback execution. Closing uses exact process matching rather than broad patterns.

Source and support

Source: https://github.com/iyeque/openclaw-skills/tree/main/skills/device-control

Report bugs and security concerns through the repository issue guidance.