apple_system
Manage macOS system settings and actions: sleep, restart, lock screen, toggle Wi-Fi/Bluetooth, dark mode, Do Not Disturb, run shortcuts, control audio, and access preferences. Confirm protected actions for execution.
Instructions
System controls: sleep, restart, shutdown, lock, dark mode, DND, caffeinate, wifi, bluetooth, shortcuts, prefs, audio, screen saver, AirDrop, login items, Time Machine, audio devices. Actions: sleep, sleep_display, restart, shutdown, logout, lock, dark_mode, dnd_on, dnd_off, caffeinate, decaffeinate, wifi_status, wifi_on, wifi_off, wifi_network, bluetooth_on, bluetooth_off, run_shortcut, list_shortcuts, open_prefs, display_settings, sound_settings, network_settings, airdrop, screen_saver, login_items, eject_all_disks, time_machine, audio_output, audio_input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the Shortcut to run | |
| pane | No | Pane name: wifi, bluetooth, sound, display, keyboard, trackpad, battery, security, notifications, general | |
| action | Yes | sleep: Put the Mac to sleep; sleep_display: Turn off the display (sleep display only); restart: Restart the Mac; shutdown: Shut down the Mac; logout: Log out the current user; lock: Lock the screen; dark_mode: Toggle dark mode on/off; dnd_on: Enable Do Not Disturb; dnd_off: Disable Do Not Disturb; caffeinate: Prevent Mac from sleeping for N minutes (default 60); decaffeinate: Stop caffeinate (allow sleep again); wifi_status: Get Wi-Fi power status; wifi_on: Turn Wi-Fi on; wifi_off: Turn Wi-Fi off; wifi_network: Get the current Wi-Fi network name; bluetooth_on: Turn Bluetooth on; bluetooth_off: Turn Bluetooth off; run_shortcut: Run a macOS Shortcut by name; list_shortcuts: List all available macOS Shortcuts; open_prefs: Open System Preferences (optionally a specific pane); display_settings: Open Display preferences (Night Shift, resolution, etc.); sound_settings: Open Sound preferences (output/input devices, volume); network_settings: Open Network preferences; airdrop: Open AirDrop window; screen_saver: Start the screen saver; login_items: List login items (apps that start at login); eject_all_disks: Force-unmount all external disks; time_machine: Get Time Machine backup status; audio_output: Get the current default audio output device; audio_input: Get the current default audio input device | |
| confirm | No | Set to true to confirm a protected/destructive action. Without this, protected actions return a preview instead of executing. | |
| minutes | No | Minutes to stay awake (default 60) |