360 Secure SkillHub
360 安全技能中心

Claw Mouse

该 Skill 提供 desktopctl.py 命令行脚本,在 Linux X11 桌面会话中调用 scrot 截图、调用 xdotool 执行鼠标移动/点击、键盘输入和窗口激活/列举,可用于截图-决策-操作的自动化循环。需要 python3、xdotool 和 scrot,不支持仅 Wayland 环境;使用前需确保 DISPLAY/XAUTHORITY 可访问真实桌面。

rylena
rylena
热度 84.97
最近更新 2026-05-17 12:16:32
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add claw-mouse
Metadata
name
claw-mouse
description
Control a Linux X11 desktop by taking screenshots and moving/clicking/typing via xdotool + scrot.
homepage
https://github.com/rylena/claw-mouse
metadata
{"openclaw":{"requires":{"bins":["python3","xdotool","scrot"]}}}

claw-mouse

This skill provides a small, scriptable desktop GUI control helper for Linux X11.

It’s intended for “vision loop” automation:

  1. take a screenshot
  2. decide where to click
  3. move/click/type
  4. repeat

Under the hood it wraps:

  • scrot for screenshots
  • xdotool for mouse/keyboard/window control

Files

  • desktopctl.py — the CLI script

Requirements

  • Linux running X11 (not Wayland-only)
  • python3
  • xdotool
  • scrot

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install -y xdotool scrot

Usage

From this skill directory:

python3 desktopctl.py screenshot
python3 desktopctl.py click 500 300
python3 desktopctl.py type "hello"
python3 desktopctl.py key ctrl+l
python3 desktopctl.py windows
python3 desktopctl.py activate "Chromium"

DISPLAY / XAUTHORITY

If you’re running from a daemon/headless shell where DISPLAY isn’t set:

DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority python3 desktopctl.py screenshot

Or use flags:

python3 desktopctl.py --display :0 --xauthority $HOME/.Xauthority screenshot

Safety notes

This can click/type into your real desktop session. Use carefully.

Changelog

  • 0.1.0: Initial published skill.