browser_set_download_path
Browser Set Download Path
Configure the directory where browser downloads will be saved. Must be set before triggering downloads. The directory must exist and be writable. Downloaded files are saved with their original filenames.
Usage Example
123456789101112
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.set_download_path(
context_id=context_id,
path="value"
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
pathstringrequiredAbsolute path to the directory where downloaded files will be saved. The directory must exist and be writable. Example: '/tmp/downloads' or '/home/user/Downloads'
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}