browse upload sends files to file input elements
Introduced 2026-04-27 · score 0.98
HOW TO USE IT
When the target is an `<input type="file">`, run `browse upload` with its selector and one or more file paths. It supports local and remote Browserbase sessions.
browse upload "#fileUpload" ./document.pdfbrowse upload "#files" ./a.png ./b.pngWHY THIS HELPS
Upload one or more files to a file input in a local or remote Browserbase session.
REQUIREMENTS AND LIMITATIONS
- Version: @browserbasehq/browse-cli@0.6.0
- <selector> (required): Selects the `<input type="file">` element; may be a selector or a ref from `browse snapshot`.
- <files...> (required): One or more file paths to upload.
- Prerequisite: An active browser session with the target file input. Local mode is the default when `BROWSERBASE_API_KEY` is unset; remote mode uses Browserbase when it is set.
- Prerequisite: Remote mode requires `BROWSERBASE_API_KEY`.
- Works with local and remote Browserbase sessions.
FIRST-PARTY EVIDENCE
- https://github.com/browserbase/stagehand/blob/@browserbasehq/browse-cli@0.6.0/packages/cli/CHANGELOG.md#060
- https://github.com/browserbase/skills/blob/main/skills/browser/REFERENCE.md
Check the installed version and the source before using it. Entry JSON