agent-browser 0.29.1 → 0.30.1
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 +18 -0
- package/bin/agent-browser-darwin-arm64 +0 -0
- package/bin/agent-browser-darwin-x64 +0 -0
- package/bin/agent-browser-linux-arm64 +0 -0
- package/bin/agent-browser-linux-musl-arm64 +0 -0
- package/bin/agent-browser-linux-musl-x64 +0 -0
- package/bin/agent-browser-linux-x64 +0 -0
- package/bin/agent-browser-win32-x64.exe +0 -0
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +7 -0
- package/skill-data/core/references/commands.md +7 -0
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ agent-browser find role button click --name "Submit"
|
|
|
111
111
|
```bash
|
|
112
112
|
agent-browser open # Launch browser (no navigation); stays on about:blank
|
|
113
113
|
agent-browser open <url> # Launch + navigate to URL (aliases: goto, navigate)
|
|
114
|
+
agent-browser read [url] # Fetch agent-readable text, or read rendered active-tab DOM
|
|
114
115
|
agent-browser click <sel> # Click element (--new-tab to open in new tab)
|
|
115
116
|
agent-browser dblclick <sel> # Double-click element
|
|
116
117
|
agent-browser focus <sel> # Focus element
|
|
@@ -161,6 +162,23 @@ agent-browser get box <sel> # Get bounding box
|
|
|
161
162
|
agent-browser get styles <sel> # Get computed styles
|
|
162
163
|
```
|
|
163
164
|
|
|
165
|
+
### Read Agent-Friendly Text
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
agent-browser read
|
|
169
|
+
agent-browser read https://example.com/article
|
|
170
|
+
agent-browser read https://example.com/article --filter overview
|
|
171
|
+
agent-browser read https://example.com/article --outline
|
|
172
|
+
agent-browser read https://docs.example.com --llms index --filter auth
|
|
173
|
+
agent-browser read https://docs.example.com --llms full --filter auth
|
|
174
|
+
agent-browser read example.com/article --require-md
|
|
175
|
+
agent-browser read https://example.com/article --json
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
`read` fetches a URL without launching Chrome. Omit the URL to read the rendered DOM of the active tab in the current browser session, including browser auth state and client-side updates. Explicit URL reads send `Accept: text/markdown` by default, try the same URL with `.md` appended when the first response is not markdown, walk ancestor paths toward `/` to find the nearest `llms.txt` for a matching docs link, print markdown or plain text when available, and fall back to readable text extracted from HTML. `--llms` and `--require-md` with no URL use the active tab URL because they depend on HTTP resources. `read` does not read `llms-full.txt` unless you ask for it.
|
|
179
|
+
|
|
180
|
+
Options: `--raw` prints the response body without HTML extraction, `--require-md` fails unless the server returns `Content-Type: text/markdown`, `--outline` prints a compact heading outline for one page, `--llms index` prints a compact nearest-ancestor `llms.txt` link list, `--llms full` reads the nearest-ancestor `llms-full.txt`, `--filter <text>` narrows page sections, llms links/sections, or outline headings, and `--timeout <ms>` changes the request timeout. Global safeguards such as `--allowed-domains`, `--content-boundaries`, and `--max-output` also apply to read fetches and output.
|
|
181
|
+
|
|
164
182
|
### Check State
|
|
165
183
|
|
|
166
184
|
```bash
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/skill-data/core/SKILL.md
CHANGED
|
@@ -89,6 +89,11 @@ URL: https://example.com/login
|
|
|
89
89
|
For unstructured reading (no refs needed):
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
+
agent-browser read # read rendered active-tab DOM
|
|
93
|
+
agent-browser read https://docs.example.com/guide # docs-friendly fetch, prefers markdown
|
|
94
|
+
agent-browser read https://docs.example.com/guide --filter auth # one matching section
|
|
95
|
+
agent-browser read https://docs.example.com/guide --outline # compact page headings
|
|
96
|
+
agent-browser read https://docs.example.com --llms index --filter auth # compact llms.txt discovery
|
|
92
97
|
agent-browser get text @e1 # visible text of an element
|
|
93
98
|
agent-browser get html @e1 # innerHTML
|
|
94
99
|
agent-browser get attr @e1 href # any attribute
|
|
@@ -98,6 +103,8 @@ agent-browser get url # current URL
|
|
|
98
103
|
agent-browser get count ".item" # count matching elements
|
|
99
104
|
```
|
|
100
105
|
|
|
106
|
+
Use `read [url]` when you need to consume documentation or other text pages rather than interact with a rendered UI. Omit the URL to read the rendered DOM of the active tab in the current browser session, including browser auth state and client-side updates. Explicit URL reads send `Accept: text/markdown`, try the same URL with `.md` appended when the first response is not markdown, walk ancestor paths toward `/` to find the nearest `llms.txt` for a matching docs link, print markdown/plain text when available, and fall back to readable text extracted from HTML without launching Chrome. Add `--filter <text>` to narrow a page to matching heading sections, `--outline` for compact headings on one page, `--llms index` for a compact nearest-ancestor `llms.txt` link list, and `--llms full` only when you explicitly need `llms-full.txt`. With `--llms` or `--require-md`, omitting the URL uses the active tab URL because those modes depend on HTTP resources. With `--llms` or `--outline`, `--filter <text>` narrows links, sections, or headings. Add `--require-md` when you specifically want to verify markdown negotiation, `--raw` when you need the response body unchanged, and `--json` when you need metadata such as `source` and `contentType`. Global safeguards such as `--allowed-domains`, `--content-boundaries`, and `--max-output` also apply to read fetches and output.
|
|
107
|
+
|
|
101
108
|
## Interacting
|
|
102
109
|
|
|
103
110
|
```bash
|
|
@@ -11,6 +11,13 @@ agent-browser open # Launch browser (no navigation); stays on about:b
|
|
|
11
11
|
agent-browser open <url> # Launch + navigate (aliases: goto, navigate)
|
|
12
12
|
# Supports: https://, http://, file://, about:, data://
|
|
13
13
|
# Auto-prepends https:// if no protocol given
|
|
14
|
+
agent-browser read [url] # Fetch agent-readable text, or read rendered active-tab DOM
|
|
15
|
+
# Explicit URLs send Accept: text/markdown, then try .md if needed
|
|
16
|
+
# Walks ancestor paths for llms.txt before HTML fallback
|
|
17
|
+
# --llms and --require-md without URL use the active tab URL
|
|
18
|
+
# --filter narrows page content to matching heading sections
|
|
19
|
+
# Honors --allowed-domains, --content-boundaries, and --max-output
|
|
20
|
+
# Options: --raw, --require-md, --outline, --llms <index|full>, --filter, --timeout <ms>
|
|
14
21
|
agent-browser back # Go back
|
|
15
22
|
agent-browser forward # Go forward
|
|
16
23
|
agent-browser reload # Reload page
|