| name | system-control |
| description | Control macOS system functions - launch apps, adjust volume, manage windows, run AppleScript, and execute shell commands. |
| metadata | {"openclaw":{"emoji":"🖥️","os":["darwin"]}} |
System Control Skill
Control macOS system functions through shell commands and AppleScript.
Launching Applications
Open any application by name:
open -a "Safari"
open -a "Messages"
open -a "Finder"
open -a "System Preferences"
Open a URL in the default browser:
open "https://example.com"
Open a file with its default application:
open ~/Documents/file.pdf
Volume Control
Get current volume (0-100):
osascript -e 'output volume of (get volume settings)'
Set volume (0-100):
osascript -e 'set volume output volume 50'
Mute/unmute:
osascript -e 'set volume output muted true'
osascript -e 'set volume output muted false'
Display Control
Get screen brightness (requires brightness CLI):
brightness -l
Set brightness (0.0 to 1.0):
brightness 0.7
System Information
Get system info:
uname -a
Get macOS version:
sw_vers
Get current date/time:
date
Get disk usage:
df -h
Get memory usage:
vm_stat | head -10
Get CPU usage:
top -l 1 -n 0 | head -10
Get battery status:
pmset -g batt
Process Management
List running applications:
osascript -e 'tell application "System Events" to get name of every process whose background only is false'
Quit an application gracefully:
osascript -e 'tell application "Safari" to quit'
Force quit an application:
pkill -9 Safari
Notifications
Display a notification:
osascript -e 'display notification "Message here" with title "Title"'
Clipboard
Get clipboard contents:
pbpaste
Set clipboard contents:
echo "text to copy" | pbcopy
Screenshots
Take a screenshot of entire screen:
screencapture ~/Desktop/screenshot.png
Take a screenshot of a selected area (interactive):
screencapture -i ~/Desktop/screenshot.png
Wi-Fi Control
Get current Wi-Fi network:
networksetup -getairportnetwork en0
Turn Wi-Fi on/off (requires sudo or approval):
networksetup -setairportpower en0 on
networksetup -setairportpower en0 off
Do Not Disturb
Note: DND control via CLI is limited in recent macOS. Use Focus modes through System Settings.
Sleep/Wake
Put display to sleep:
pmset displaysleepnow
Prevent sleep while a command runs:
caffeinate -i command-here
Example Usage
When user says "Open Safari", run:
open -a "Safari"
When user says "What's my battery at?", run:
pmset -g batt
When user says "Turn the volume to 30%", run:
osascript -e 'set volume output volume 30'