browser4-cli 4.13.3 → 4.13.5
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 +11 -10
- package/bin/browser4-cli-darwin-arm64 +0 -0
- package/bin/browser4-cli-darwin-x64 +0 -0
- package/bin/browser4-cli-linux-arm64 +0 -0
- package/bin/browser4-cli-linux-musl-arm64 +0 -0
- package/bin/browser4-cli-linux-musl-x64 +0 -0
- package/bin/browser4-cli-linux-x64 +0 -0
- package/bin/browser4-cli-win32-x64.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,10 +55,11 @@ Paste the following instruction to your favorite AI agent like claude, codex, wo
|
|
|
55
55
|
```
|
|
56
56
|
Read https://browser4.io/SKILL.md and install browser4-cli (if not installed) for browser automation to perform the following task:
|
|
57
57
|
|
|
58
|
-
1.
|
|
59
|
-
2.
|
|
60
|
-
3.
|
|
61
|
-
4.
|
|
58
|
+
1. Open the browser in headed mode (`open --headed`) so the window is visible — this is a human-facing demo
|
|
59
|
+
2. go to amazon.com
|
|
60
|
+
3. search for pens to draw on whiteboards
|
|
61
|
+
4. compare the first 4 ones
|
|
62
|
+
5. write the result to a markdown file
|
|
62
63
|
```
|
|
63
64
|
|
|
64
65
|
## 🧭 Tool Selection Guide
|
|
@@ -72,7 +73,8 @@ Use `snapshot -i --boxes` to see clickable/typeable elements with refs like `e15
|
|
|
72
73
|
Typical interactive flow:
|
|
73
74
|
|
|
74
75
|
```bash
|
|
75
|
-
|
|
76
|
+
# Humans usually want to see the browser — open it headed
|
|
77
|
+
browser4-cli open --headed https://example.com/login
|
|
76
78
|
browser4-cli snapshot -i --boxes
|
|
77
79
|
browser4-cli fill e3 "user@example.com"
|
|
78
80
|
browser4-cli fill e4 "secret" --submit
|
|
@@ -104,6 +106,7 @@ Need to process multiple pages?
|
|
|
104
106
|
├─ Need parallel execution (high throughput)? → swarm create → swarm query --seed-file ...
|
|
105
107
|
├─ Repeated monitoring (check every hour)? → loop -- eval "..." -i 3600
|
|
106
108
|
└─ Just a few URLs in a shell script?
|
|
109
|
+
→ browser4-cli open --headed "https://first-url" # humans: open once, visibly
|
|
107
110
|
→ for url in ...; do browser4-cli goto "$url"; ... done
|
|
108
111
|
```
|
|
109
112
|
|
|
@@ -164,10 +167,8 @@ If you want the embedded agent-facing instructions, see [skills/browser4-cli/SKI
|
|
|
164
167
|
### Quick start
|
|
165
168
|
|
|
166
169
|
```bash
|
|
167
|
-
# Open a browser session (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
# Or explicitly open a visible browser:
|
|
170
|
+
# Open a visible browser session (humans usually want to see the window;
|
|
171
|
+
# agents should prefer the default headless mode — see SKILL.md)
|
|
171
172
|
browser4-cli open --headed https://browser4.io
|
|
172
173
|
|
|
173
174
|
# Inspect the page and get element refs
|
|
@@ -186,7 +187,7 @@ browser4-cli htmlsnapshot get text "#main-content"
|
|
|
186
187
|
browser4-cli htmlsnapshot query --sql @query.sql
|
|
187
188
|
|
|
188
189
|
# Save output
|
|
189
|
-
browser4-cli screenshot --full-page --filename page.
|
|
190
|
+
browser4-cli screenshot --full-page --filename page.jpg
|
|
190
191
|
browser4-cli pdf --filename page.pdf
|
|
191
192
|
```
|
|
192
193
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|