browser_upload_file
Attach local files to a browser page's file input or drop zone without opening the OS file dialog, supporting single or multiple files and streaming uploads.
Instructions
Attach local file(s) to a page's upload control - no OS file dialog.
The bridge reads the file from disk and streams it into the page, which builds real File objects and sets them on the (firing input + change). If the selector is a drop zone with no input inside, it fires dragenter/dragover/drop.
Args: path: absolute file path, or a list of paths for multi-file inputs. selector: the file input, an element containing it, or a drop zone. Omit to use the first input[type=file] on the page. mode: "auto" (input if found, else drop), "input", or "drop". tab_id: target tab (default: active). Pass it for anything big - the upload streams in ~384 KB chunks and must keep hitting the same tab.
Returns {ok, mode, files: [{name, size, type}], chunks, bytes, transport, seconds}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| path | Yes | ||
| tab_id | No | ||
| selector | No |