browser_wait_for_download
Waits for a file download to finish in a specified directory by confirming the .crdownload extension is gone. Use it to synchronize automation with completed downloads.
Instructions
Wait for a file download to complete in the download directory without .crdownload extension.
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": {
"directory": "<directory>"
},
"name": "browser_wait_for_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Maximum seconds to wait | |
| directory | Yes | Directory to watch for completed download | |
| filename_pattern | No | Optional substring to match filename |