get_device_jobs
Retrieve all jobs for a device, including running, completed, and failed. Filter by job type such as script or patch install.
Instructions
Get all jobs (running, completed, and failed) for a specific device.
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_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | NinjaOne device ID | |
| job_type | No | Filter by job type (e.g., SCRIPT, PATCH_INSTALL, CONDITION_ACTION) |