macOS Desktop Control Enhanced
简介
macOS Desktop Control Enhanced
原始描述
macOS Desktop Control Enhanced provides system-wide desktop automation on macOS, including screenshot capture, process management, clipboard operations, syst...
通过你的 Agent 添加
安装目录:macos-desktop-control-enhanced/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
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
- 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
screenshot([options]) – Capture the entire screen or a specified region; returns image path.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
get_clipboard() – Retrieves current clipboard text.set_clipboard(text) – Overwrites the clipboard with the given text.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
focus_app(bundle_id) – Brings the specified application to the foreground.terminate_app(bundle_id) – Force‑closes the application with the given bundle ID.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
type_text(text) – Types the given string using the system keyboard.press_key(key) – Sends a single keyboard key event.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
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.MIT‑0 (Free to use, modify, and redistribute. No attribution required.)
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。