跳至主要内容
小龙虾小龙虾AI
🤖

MacOS Desktop Control (Mouse, Keyboard, Screenshots)

Automate macOS desktop by capturing screenshots and executing precise mouse movements, clicks, and keyboard inputs via cliclick.

下载4.5k
星标2
版本1.0.0
图像视频
安全通过

技能说明

macOS Control Skill

A high-fidelity automation bridge for macOS (Darwin) that enables agents to perceive the desktop state and execute precise mouse and keyboard interactions.

🛠 Included Scripts

This skill leverages specialized wrappers located in the /scripts directory to interface with system-level binaries:

1. cliclick_wrapper.sh

A dedicated wrapper for the cliclick utility to handle synthetic input events.

  • Path: scripts/cliclick_wrapper.sh
  • Logic: Executes /opt/homebrew/bin/cliclick with passed arguments.
  • Capabilities: Left/Right clicks, mouse movement, and keyboard emulation.

2. vision_wrapper.sh

The visual perception engine for the skill.

  • Path: scripts/vision_wrapper.sh
  • Logic: Utilizes the native macOS screencapture utility in silent mode (-x).
  • Output: Generates a standard PNG at /tmp/claw_view.png.

🚀 Tool Specifications

see

Captures the current screen state for visual analysis.

  • Returns: A string confirming the filepath of the capture.
  • Use Case: Identifies UI elements, window positions, and application states.

click

Sends precise commands to the mouse and keyboard.

  • Usage: click "c:x,y" (Click) or click "m:x,y" (Move).
  • Syntax: Supports all cliclick standard notation including w: (wait) and t: (type).

⚙️ Requirements & Setup

  1. Binary Dependency:
    brew install cliclick
    

如何使用「MacOS Desktop Control (Mouse, Keyboard, Screenshots)」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「MacOS Desktop Control (Mouse, Keyboard, Screenshots)技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能