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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"target": "<target>"
},
"name": "browser_download_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | http(s) URL to download | |
| target | Yes | Absolute local file path to save to |