List Device OS Patches
ninjaone_list_device_os_patchesRetrieves pending, failed, and rejected OS patches for one device so agents can audit patch status and filter by severity, status, or type.
Instructions
List one device's pending, failed and rejected OS patches. For the same data across many devices, use the matching ninjaone_report_* tool with df.
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": "ninjaone_list_device_os_patches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Patch type filter. | |
| limit | No | Rows per page, 1 to 500. Default 50. | |
| cursor | No | Opaque cursor from next_cursor on the previous page. Omit for the first page. | |
| fields | No | Omit for the compact field set. "all" returns full records; a list of names returns just those fields. | |
| status | No | Patch status filter, e.g. "PENDING", "FAILED", "REJECTED", "APPROVED", "INSTALLED". | |
| severity | No | Severity filter, e.g. "CRITICAL". | |
| device_id | Yes | Device id (from ninjaone_list_devices or ninjaone_search_devices). |