download_wait
Wait up to a timeout for a download GID to reach complete, error, removed, or paused status without tight polling; if it times out, continue other work and check status later.
Instructions
Wait up to timeout_seconds (default 30, max 120) for a download GID to reach complete, error, removed, or paused without tight polling. If timedOut=true, do not loop download_wait tightly: continue other work, check download_status later or run node "/app/server.mjs" --wait <gid> in a background shell.
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": {
"gid": "<gid>"
},
"name": "download_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gid | Yes | ||
| timeout_seconds | No | Maximum seconds to wait (1 to 120, default 30). |