Usage
Parameters
Only dismiss notifications from this application. If omitted, all notifications are dismissed.
Response
Number of notifications successfully dismissed
Array of error messages for notifications that failed to dismiss. Omitted if all dismissals succeeded.
Number of notifications that failed to dismiss. Only present if failures occurred.
Examples
Dismiss All Notifications
Dismiss All from Specific App
With Partial Failures
If some notifications fail to dismiss, the response includes failure details:Use Cases
Clear All Notifications
Clear All Notifications
Clean up all notifications at once:Useful for maintaining a clean notification center or before screenshots/demos.
Clear Notifications from One App
Clear Notifications from One App
Dismiss all notifications from a specific app while keeping others:
Scheduled Cleanup
Scheduled Cleanup
Run periodically to prevent notification buildup:
Focus Mode
Focus Mode
Clear distractions before starting focused work:
Behavior
- Dismissals are attempted in order from first to last notification
- If some notifications fail to dismiss, the command continues with remaining notifications
- The command returns success (
"ok": true) even if some dismissals fail; check thefailuresfield for details - Notifications dismissed successfully are removed immediately and won’t appear in subsequent
list-notificationscalls
Error Handling
Common error codes:PERM_DENIED: macOS accessibility permission not grantedAPP_NOT_FOUND: Specified app has no notifications
Notes
- This is a bulk operation; use
dismiss-notificationfor selective dismissal - The
--appfilter is case-sensitive and must match the app name exactly as shown inlist-notifications - Notifications are dismissed sequentially, not in parallel
- The command does not require
list-notificationsto be called first
Related Commands
- list-notifications - List all notifications before dismissing
- dismiss-notification - Dismiss a single notification by index
- notification-action - Interact with notification action buttons