Start a new download
browser_download_addStart downloading a URL to a specified local file path, enabling agents to save web resources directly to disk. Use an absolute target path whose parent directory already exists.
Instructions
Begin a download of a URL to a local file. MEASURED: Downloads.createDownload exists on the module from resource://gre/modules/Downloads.sys.mjs (Downloads.getDataItem does NOT). This is the write half that browser_download_manage does not cover. Pass an absolute target path; the parent directory must exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | http(s) URL to download | |
| target | Yes | Absolute local file path to save to |