download_file
Downloads a file from a URL or link/image selector into the output directory using current cookies and proxy; works when the browser cancels its own download handling.
Instructions
Download a file into the output dir. target is a URL or a selector/ref of a link or image
(its href/src is used). The fetch runs inside the current page, so it reuses the session's cookies
and proxy; for cross-origin files navigate to that site first. (CloakBrowser cancels the browser's
own download handling, so clicking a download link does not save anything: use this instead.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_mb | No | ||
| target | Yes | ||
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |