Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions skills/browser/REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ browse select "#country" "United States"
browse select "#tags" "javascript" "typescript" # multi-select
```

#### `upload <selector> <files...>`

Upload file(s) to an `<input type="file">` element. Works with both local and remote Browserbase sessions (remote uses base64 injection). Supports ref-based selectors from snapshot.

```bash
browse upload "#fileUpload" ./document.pdf # single file
browse upload @0-5 ./photo.png # using ref from snapshot
browse upload "#files" ./a.png ./b.png # multiple files
```

#### `press <key>`

Press a keyboard key or key combination.
Expand Down
1 change: 1 addition & 0 deletions skills/browser/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ browse click <ref> # Click element by ref from snapshot (e
browse type <text> # Type text into focused element
browse fill <selector> <value> # Fill input and press Enter
browse select <selector> <values...> # Select dropdown option(s)
browse upload <selector> <files...> # Upload file(s) to <input type="file">
browse press <key> # Press key (Enter, Tab, Escape, Cmd+A, etc.)
browse drag <fromX> <fromY> <toX> <toY> # Drag from one point to another
browse scroll <x> <y> <deltaX> <deltaY> # Scroll at coordinates
Expand Down