๐ŸŽ Get the FREE AI Skills Starter Guide โ€” Subscribe โ†’
BytesAgainBytesAgain
๐Ÿฆ€ ClawHub

macOS Desktop Control Enhanced

by @pry520okgpt

macOS Desktop Control Enhanced provides system-wide desktop automation on macOS, including screenshot capture, process management, clipboard operations, syst...

Versionv1.0.0
Downloads610
TERMINAL
clawhub install macos-desktop-control-enhanced

๐Ÿ“– About This Skill


name: macos-desktop-control-enhanced description: macOS Desktop Control Enhanced provides system-wide desktop automation on macOS, including screenshot capture, process management, clipboard operations, system information, application control (open/close), and direct mouse, keyboard, and screen interaction. Use this skill when you need to programmatically control or query the macOS desktop environment.

When to Use This Skill

  • You need to capture the screen or a region programmatically.
  • You need to query or control running processes.
  • You need to read or modify the clipboard content.
  • You need to retrieve system information (e.g., battery level, OS version).
  • You need to open, focus, or close applications by bundle ID.
  • You need to move the mouse, click, drag, or simulate keyboard input.
  • You need to integrate macOS desktop automation into larger workflows (e.g., testing, data collection, accessibility).
  • Overview

    macOS Desktop Control Enhanced offers the following core capabilities:

    1. Screenshot

  • screenshot([options]) โ€“ Capture the entire screen or a specified region; returns image path.
  • 2. Process Management

  • get_front_process() โ€“ Returns information about the currently frontmost process.
  • kill_process(pid) โ€“ Terminates the process with the given PID.
  • launch_app(bundle_id) โ€“ Launches an application identified by its bundle ID.
  • 3. Clipboard

  • get_clipboard() โ€“ Retrieves current clipboard text.
  • set_clipboard(text) โ€“ Overwrites the clipboard with the given text.
  • 4. System Information

  • get_system_info() โ€“ Returns a dictionary with macOS version, battery level, and other relevant system metrics.
  • 5. Application Control

  • focus_app(bundle_id) โ€“ Brings the specified application to the foreground.
  • terminate_app(bundle_id) โ€“ Forceโ€‘closes the application with the given bundle ID.
  • 6. Mouse Control

  • move_mouse(x, y) โ€“ Moves the cursor to the given screen coordinates.
  • click(x, y, button='left') โ€“ Performs a mouse click at the given coordinates.
  • drag(x1, y1, x2, y2, button='left') โ€“ Drags from (x1, y1) to (x2, y2).
  • 7. Keyboard Control

  • type_text(text) โ€“ Types the given string using the system keyboard.
  • press_key(key) โ€“ Sends a single keyboard key event.
  • Structure

    This skill follows a Capabilitiesโ€‘Based structure, grouping functionality by core features. Each capability section lists the available functions, their purpose, and brief usage notes.

    References

  • references/api_reference.md โ€“ Complete function signatures, parameter details, and return values.
  • scripts/example_mouse.py โ€“ Sample Python script demonstrating mouse movement and clicking.
  • assets/example_asset.png โ€“ Example asset showing a captured screenshot.
  • License

    MITโ€‘0 (Free to use, modify, and redistribute. No attribution required.)