Skip to content

Commit 933e7c5

Browse files
committed
Document browser runtime dependency for auto/browser modes
1 parent 75236b8 commit 933e7c5

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ If you use tools like Codex or Claude Code, note that they may already include b
2424
- `raw`: send `Accept: text/markdown`, then print that single HTTP response body as-is (no fallback/conversion)
2525
- `--meta` (default `true`): control whether non-`raw` outputs include front matter (`title`/`description`). For `auto`/`static` direct markdown responses, it may do one extra HTML request to collect metadata.
2626

27+
## Runtime dependency
28+
29+
`browser` mode requires a Chrome/Chromium browser available on the host.
30+
31+
`auto` mode may fall back to browser rendering, so it can also require Chrome/Chromium on some pages.
32+
33+
Use `--mode static` or `--mode raw` to avoid browser dependency.
34+
2735
## Install (with Go)
2836

2937
If Go is already installed locally:

README.zh.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
- `raw`:带 `Accept: text/markdown` 发起一次 HTTP 请求,并将该响应体原样输出(不做回退/转换)
2525
- `--meta`(默认 `true`):控制非 `raw` 输出是否附带 front matter(`title`/`description`)。对于 `auto`/`static` 的直返 markdown,可能会额外发起一次 HTML 请求用于补齐元信息。
2626

27+
## 运行时依赖
28+
29+
`browser` 模式要求宿主机可用 Chrome/Chromium 浏览器。
30+
31+
`auto` 模式可能回退到浏览器渲染,因此在部分页面上也会依赖 Chrome/Chromium。
32+
33+
如需避免浏览器依赖,请使用 `--mode static``--mode raw`
34+
2735
## 安装(使用 Go)
2836

2937
如果本地已经安装 Go,可直接执行:

skills/agent-fetch/SKILL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ agent-fetch --help
4343

4444
## Fetch workflow
4545

46+
Browser runtime requirement:
47+
48+
- `--mode browser` requires Chrome/Chromium available on the host.
49+
- `--mode auto` may fall back to browser rendering on some pages.
50+
- Use `--mode static` or `--mode raw` when browser runtime is unavailable.
51+
4652
1. Start with `auto` mode for general pages.
4753
2. Use `browser` mode for JavaScript-heavy pages.
4854
3. Add `--wait-selector` in `browser` mode when content appears late.

0 commit comments

Comments
 (0)