send_push_notification
Sends push notifications to ServiceNow mobile app users (Now Mobile/Mobile Agent) by firing a push-only event, with targeting by user, group, record, and optional action link.
Instructions
Send a push notification to ServiceNow mobile app users (Now Mobile / Mobile Agent) the way ServiceNow does it: an event fires a push-only notification whose push message carries the text. The first call per table sets up, and later calls reuse, an event "nowaikit.push", a push message "NowAIKit push ()" and a notification "NowAIKit push ()". Only users signed in to the mobile app with push enabled receive it; the result says how many recipients have a registered device. [Write]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"body": "<body>"
},
"name": "send_push_notification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Notification body text | |
| user | No | Target user sys_id or user_name | |
| group | No | Target group sys_id or name (its active members receive it) | |
| table | No | Table of the record the notification is about (tapping opens it in the app). Default: sys_user, the first recipient | |
| title | Yes | Notification title (first line of the message) | |
| users | No | More target users (sys_id or user_name) | |
| groups | No | More target groups (sys_id or name) | |
| push_app | No | Push application (sys_push_application) name or sys_id. Default SkyNowPushApp (Now Mobile / Mobile Agent); SkyNowRequestPushApp for Now Mobile request app | |
| action_url | No | Link appended to the message | |
| setup_only | No | Create or check the event, push message and notification without sending anything | |
| record_sys_id | No | sys_id of that record (required with table) |