Start a background job
omv_start_jobStart a NAS background job, such as refreshing package updates or running a scheduled SMART test, and return a job ID to follow or stop it.
Instructions
Start a job on the NAS and follow it in the background; returns a job id for omv_get_job and omv_stop_job. Use it when asked "check for updates now" or "run a SMART self-test on /dev/sda"; to follow it, omv_get_job. kind refresh_updates refreshes the package index (apt update), so omv_list_updates sees new versions; it works with writes off and takes no target. kind smart_test runs one of the NAS's scheduled SMART self-tests now, chosen by target (the disk, such as /dev/sda) and test (short, long, conveyance, offline) when the disk has several; it needs writes on, and when nothing matches the error lists the scheduled tests. It cannot run a test that has no schedule. The self-test itself runs on the disk for minutes (short) to hours (long); read its result later with omv_get_disk_health. At most 4 jobs run at once, one per kind and target.
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": {
"kind": "<kind>"
},
"name": "omv_start_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| test | No | smart_test only: which scheduled test, when the disk has more than one. | |
| target | No | smart_test only: the disk, as its device file or name (/dev/sda or sda, or a /dev/disk/by-id name). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| kind | Yes | ||
| state | No | ||
| detail | Yes | ||
| target | Yes | ||
| outcome | Yes | ||
| started_at | No |