omv_wait_for_task
Retrieve the output of a background task running on the NAS. Wait for the task to complete by polling with the filename from omv_call, then obtain the result.
Instructions
Collect the output of a background task started by omv_call.
When omv_call returns something like {"filename": "..."}, the job is running asynchronously on the NAS. This tool polls until it finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The filename value from the omv_call result. | |
| max_seconds | No | How long to wait before giving up. |