Check whether notifications are allowed
check_notification_permissionCheck whether notification sending is permitted before calling send_notification, without sending a test notification. Focus modes like Do Not Disturb can still hide allowed alerts.
Instructions
Check whether send_notification can show notifications, without sending one. A Focus mode such as Do Not Disturb can still hide notifications that are allowed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_notification_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allowed | Yes | Whether macOS lets Script Editor, which posts the notifications, show them. Null when it can't tell: Script Editor has never posted one yet, or the settings couldn't be read. |