List Browser Files
list_browser_filesLists files inside the remote browser sandbox so you can find completed downloads; set downloads to /tmp/downloads first and retry if a saved file is briefly unreadable.
Instructions
List files inside the browser sandbox.
Defaults to /tmp/downloads — point downloads there first, via CDP Browser.setDownloadBehavior with downloadPath: "/tmp/downloads".
Use after a download completes to discover what was saved. The browser sandbox is ephemeral, so files only exist while the browser is alive.
There can be a brief delay between CDP downloadProgress reporting "completed" and the file being readable; if a file looks truncated, retry after a moment.
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": {
"browser_id": "<browser_id>"
},
"name": "list_browser_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path (default: /tmp/downloads) | |
| pattern | No | Optional glob pattern to filter results | |
| browser_id | Yes | ID of the browser |