browser4-cli 4.13.1 → 4.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -67,23 +67,7 @@ Choosing the right tool for your task:
67
67
 
68
68
  ### How to Interact with a Page
69
69
 
70
- ```
71
- Need to interact with a page?
72
- ├─ Need to open or recover a browser session? → open [url] or goto <url>
73
- ├─ Need to see what is clickable/typeable right now? → snapshot -i --boxes
74
- ├─ Need to click a button, link, checkbox, or menu item? → click <ref>
75
- ├─ Need to fill a form field and replace existing text? → fill <ref> "<text>"
76
- ├─ Need to type naturally into the current field or send Enter/Tab? → type / press
77
- ├─ Need to choose from a dropdown? → select <ref> <value>
78
- ├─ Need to hover, drag, scroll, or use the mouse directly? → hover / drag / scroll / mouse*
79
- ├─ Need to wait for the page to settle before the next step?
80
- │ ├─ Element appears? → wait <ref|selector>
81
- │ ├─ Text appears? → wait --text "..."
82
- │ ├─ URL changes? → wait --url "**/target"
83
- │ └─ Loading/network finishes? → wait --load networkidle
84
- ├─ Need to verify what changed after the action? → snapshot, get, or eval
85
- └─ Need to repeat many UI steps efficiently? → batch "goto ..." "click ..." "fill ..."
86
- ```
70
+ Use `snapshot -i --boxes` to see clickable/typeable elements with refs like `e15`, then `click <ref>`, `fill <ref> "<text>"`, `type`/`press`, `select`, `hover`/`drag`/`scroll`, and `wait` to drive the page. All interaction commands accept CSS selectors too. Chain multiple steps efficiently with `batch`.
87
71
 
88
72
  Typical interactive flow:
89
73
 
@@ -180,7 +164,10 @@ If you want the embedded agent-facing instructions, see [skills/browser4-cli/SKI
180
164
  ### Quick start
181
165
 
182
166
  ```bash
183
- # Open a browser session
167
+ # Open a browser session (headless by default; add --headed to see the window)
168
+ browser4-cli open https://browser4.io
169
+
170
+ # Or explicitly open a visible browser:
184
171
  browser4-cli open --headed https://browser4.io
185
172
 
186
173
  # Inspect the page and get element refs
@@ -265,7 +252,7 @@ export DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
265
252
 
266
253
  | Command | Description |
267
254
  |---|---|
268
- | `open [url]` | Open a browser session or reconnect to an existing one. Supports `--headed`, `--headless`, `--profile <path>`, `--profile-mode <DEFAULT\|SYSTEM_DEFAULT\|SEQUENTIAL\|TEMPORARY>`, `--interact-level <FASTEST\|FAST\|DEFAULT>`. |
255
+ | `open [url]` | Open a browser session or reconnect to an existing one. **Headless by default.** Supports `--headed` (visible window), `--headless`, `--profile <path>`, `--profile-mode <DEFAULT\|SYSTEM_DEFAULT\|SEQUENTIAL\|TEMPORARY>`, `--interact-level <FASTEST\|FAST\|DEFAULT>`. |
269
256
  | `attach` | Attach to an existing browser via CDP or the Browser4 extension. Supports `--cdp <url\|port\|channel>` and remote endpoint options. |
270
257
  | `close` | Close the active browser session. |
271
258
  | `list` | List browser sessions with their status and next-open behavior. Supports `--all`. |
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser4-cli",
3
- "version": "4.13.1",
3
+ "version": "4.13.3",
4
4
  "description": "Browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "files": [