Wait For Download
wait_for_downloadWaits for a new file in a download directory, then returns its path and size once the file stops growing, so you can process it only after download completion.
Instructions
Wait for new file in dir, return path once size stable. Pair w/ setup_downloads.
Ex: wait_for_download('t0', '/tmp/dl', 30) → {"path":"/tmp/dl/file.pdf","size_bytes":102400,"name":"file.pdf"}
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": {
"tab_id": "<tab_id>",
"download_dir": "<download_dir>"
},
"name": "wait_for_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| min_bytes | No | ||
| timeout_s | No | ||
| download_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||