capture_downloads
Save files the page builds itself, with no browser download and no "Save as" dialog: blob and data URL links (a[download]), window.showSaveFilePicker writes, and downloads the page starts (cancelled at once, bytes fetched again with the…
Instructions
Save files the page builds itself, with no browser download and no "Save as" dialog: blob and data URL links (a[download]), window.showSaveFilePicker writes, and downloads the page starts (cancelled at once, bytes fetched again with the browser cookies). arm with save_dir, then click Export/Download, then wait: it returns the saved paths. A file with a URL: http_request save_to instead. Names are cleaned, existing files never overwritten, size capped by max_mb.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | arm before the click; wait returns what arrived and stays armed; disarm restores the page | |
| max_mb | No | arm: per-file cap in MB (default 100, max 200); a bigger file is skipped | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| timeout | No | wait: max ms for the first file | |
| save_dir | No | arm: absolute directory for the files; created if missing |