跳到正文
TakoAPI
返回技能列表

xdotool-control

由 jeremysommerfeld8910-cpu 提供

Browser & Automation
430下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Mouse and keyboard automation using xdotool.

描述

该技能的功能

Mouse, keyboard, and window automation for Linux desktops using xdotool. Covers clicking at screen coordinates, typing into GUI apps, switching browser tabs, and running screenshot-verify-click loops. Works when browser CDP is unavailable.

Handles desktop UI automation directly on Linux without requiring a browser debugging protocol or remote relay.

何时使用

  • Clicking Chrome extension icons by name
  • Typing commands into a terminal window
  • Switching browser tabs without a relay
  • Automating desktop GUI interactions via coordinate clicks
  • Running screenshot loops to verify and click UI elements

示例工作流

输入

User asks: click the OpenClaw extension icon in Chrome

智能体
  1. 1

    Run xdotool getdisplaygeometry to get screen dimensions

  2. 2

    Take a toolbar screenshot with scrot to verify icon positions

  3. 3

    Find and focus the Chrome window with xdotool search and windowactivate --sync

  4. 4

    Wait 0.3s for focus to settle

  5. 5

    Click the extension icon coordinates with xdotool mousemove and click 1

输出

Chrome extension icon clicked at the correct toolbar position

安装

clawhub install jeremysommerfeld8910-cpu/xdotool-control

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接