get_device_activities
Retrieve recent activity logs for a specific device, including alerts, script executions, and status changes. Filter by activity type and paginate through results.
Instructions
Get recent activity log for a specific device. Shows events such as alerts triggered, scripts run, and status changes.
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": {
"device_id": "<device_id>"
},
"name": "get_device_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | NinjaOne device ID | |
| page_size | No | Number of activity entries to return | |
| after | No | Activity ID cursor for pagination | |
| activity_type | No | Filter by activity type (e.g., CONDITION, PATCH, SCRIPT) |