Set the download directory
browser_set_download_dirSet where Firefox saves downloads by configuring an absolute directory through browser preferences; BiDi cannot set download behavior directly. Pass the path with forward slashes.
Instructions
Point Firefox at a download directory (privileged context) by writing browser.download.folderList=2, browser.download.dir and browser.download.useDownloadDir=true. BiDi cannot configure downloads itself (browsingContext.setDownloadBehavior is not implemented), so the preferences are the supported route. Send the path with FORWARD slashes: single backslashes inside a JSON string are invalid escapes (D:DSH... fails on D), the request is then dropped before reaching the server, and it looks like the tool hung. Use browser_list_downloads to see what landed there.
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": {
"path": "<path>"
},
"name": "browser_set_download_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute directory to download into |