Wait for Download
browser_wait_for_downloadWait for a download to complete after a browser action, verifying the saved file, filename, or timing.
Instructions
Use when a browser action should create a download and the saved file, filename, or timing must be verified. Preconditions: an active page is required; when triggerSelector is used it must identify the authorized download action, and raw capture requires acknowledgement. Next: inspect browser_get_downloads or the saved file through an appropriate local-file workflow. Sensitivity: downloaded files may contain sensitive application data and the optional trigger can cause external effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputDir | No | ||
| timeoutMs | No | ||
| triggerSelector | No | ||
| suggestedFilename | No | ||
| acknowledgeRawCapture | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |