wait_for_download
Waits for a file download triggered by a click to finish, then returns its path on disk so agents can use the downloaded invoice, CSV, or PDF.
Instructions
After clicking something that downloads a file (an invoice, a CSV export, a PDF), wait for it to finish and get its path on disk. Downloads that started in the last 15 seconds count, so call it right after the click.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab handle from list_tabs, e.g. "chrome:812". Optional when only one tab is shared. | |
| browser | No | ||
| timeout_seconds | No | Default 60. |