@liang-hz/agent-in-chrome 0.55.5 → 0.56.0

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.en.md CHANGED
@@ -75,7 +75,7 @@ Agent in Chrome connects an AI agent (Claude Code, Claude Desktop, Trae, Codex,
75
75
  > Requires Node.js 18+ and Chrome 125+ (or Edge / Brave / Vivaldi / any Chromium-based browser). macOS is fully tested; Windows extension mode and CLI/headless mode are both supported (named pipes + registry + `.bat` launcher; CLI-mode process management goes through the PowerShell process table); the Linux path is written but unverified — see [Known limitations](#known-limitations).
76
76
  >
77
77
  > 18 really is enough, and that's measured: on Node 18.20.8 `check` passes end to end, the MCP server
78
- > boots and lists all 37 tools. The one exception is CLI mode's `AGENT_IN_CHROME_KEEP=1`, which needs
78
+ > boots and lists all 38 tools. The one exception is CLI mode's `AGENT_IN_CHROME_KEEP=1`, which needs
79
79
  > Node's global `WebSocket` — **Node 22+ only**; the default pipe transport works fine on older Node.
80
80
  > See [docs/CLI.md](docs/CLI.md).
81
81
 
@@ -237,6 +237,7 @@ Terminal agents, cron jobs, CI, and remote SSH boxes don't have "an open Chrome
237
237
  | Tool | What it does |
238
238
  |---|---|
239
239
  | `browser_eval` | Evaluate in-page to extract data; results aren't truncated and can go to `outFile` |
240
+ | `browser_fetch` | Same-origin HTTP fetch in the tab context (carries `HttpOnly` cookies, supports `outFile`) |
240
241
  | `browser_cdp` | Raw CDP passthrough (escape hatch) |
241
242
  | `browser_console` | Console output and page exceptions |
242
243
  | `browser_network` | Request list (`type:"api"` filter, `bodyContains` searches response bodies directly) |
@@ -264,7 +265,7 @@ Terminal agents, cron jobs, CI, and remote SSH boxes don't have "an open Chrome
264
265
  ```
265
266
 
266
267
  - **`profile` has two settings**, controlling which tools appear in the agent's tool list at all. A tool that's off isn't "disabled" — it **doesn't exist**, so the model never sees it and never reaches for it:
267
- - `observe` — read pages, screenshot, inspect network, open its own tabs and navigate them. No clicking, no typing, no credential access — any **parameter** that crosses into the credential or execution surface is refused outright at this level: `revealSecrets`, and `browser_wait_for`'s `js` (which is arbitrary evaluation in the page's main world). **An honest caveat**: navigation itself issues GET requests as you, and on some sites unsubscribe or deactivate links *are* GETs. The whole `tools/list` is about 20 KB at this level (about 36 KB at `full`), which saves tokens on every single request.
268
+ - `observe` — read pages, screenshot, inspect network, open its own tabs and navigate them. No clicking, no typing, no credential access — any **parameter** that crosses into the credential or execution surface is refused outright at this level: `revealSecrets`, and `browser_wait_for`'s `js` (which is arbitrary evaluation in the page's main world). **An honest caveat**: navigation itself issues GET requests as you, and on some sites unsubscribe or deactivate links *are* GETs. The whole `tools/list` is about 15 KB at this level (about 27 KB at `full`), which saves tokens on every single request.
268
269
  - `full` (default) — everything: click/type, `eval` / `cdp` (arbitrary code), cookie import/export (your entire login state), `websocket`, `upload_file`.
269
270
  - Older configs using `readonly` / `standard` still work, mapping to `observe` / `full` respectively (`standard` migrates toward the permissive side, so we never silently take away capability you already had).
270
271
  - **`disable` / `enable`** turn individual tools off or on on top of the profile (full names, `browser_` prefix). If a tool appears in both, `disable` wins.
package/README.md CHANGED
@@ -74,7 +74,7 @@ Agent in Chrome 把 AI agent(Claude Code、Claude Desktop、Trae、Codex……
74
74
 
75
75
  > 需要 Node.js 18+ 和 Chrome 125+(或 Edge / Brave / Vivaldi 等 Chromium 系)。目前 macOS 实测完整;Windows 插件模式与 CLI/headless 模式均已支持(命名管道 + 注册表 + .bat 启动器;CLI 模式的进程管理走 PowerShell 进程表);Linux 路径已写待验证(见[已知限制](#已知限制))。
76
76
  >
77
- > 18 够用是实测过的:Node 18.20.8 上 `check` 全过、MCP server 起得来、37 个工具都在。唯一的例外在
77
+ > 18 够用是实测过的:Node 18.20.8 上 `check` 全过、MCP server 起得来、38 个工具都在。唯一的例外在
78
78
  > CLI 模式的 `AGENT_IN_CHROME_KEEP=1` 那条路上——它要 Node 的全局 `WebSocket`,**Node 22 才有**;
79
79
  > 老 Node 上默认的管道通道照常能跑,见 [docs/CLI.md](docs/CLI.md)。
80
80
 
@@ -233,6 +233,7 @@ agent → MCP server → 本机 socket → native host(Chrome 拉起)→ 扩
233
233
  | 工具 | 作用 |
234
234
  |---|---|
235
235
  | `browser_eval` | 页面内求值取数据;结果不截断,可 `outFile` 落盘 |
236
+ | `browser_fetch` | 在当前标签页上下文发同源 HTTP 请求(自动带 `HttpOnly` Cookie,可 `outFile` 落盘) |
236
237
  | `browser_cdp` | 原始 CDP 直通(逃生舱) |
237
238
  | `browser_console` | console 输出与页面异常 |
238
239
  | `browser_network` | 请求列表(`type:"api"` 过滤、`bodyContains` 直接搜响应体) |
@@ -261,7 +262,7 @@ agent → MCP server → 本机 socket → native host(Chrome 拉起)→ 扩
261
262
  ```
262
263
 
263
264
  - **`profile` 两档**,管的是哪些工具出现在 agent 的工具列表里——关掉的工具不是"禁用",是**根本不存在**,模型看不到也不会去调:
264
- - `observe` —— 读页面、截图、看网络、开自己的标签页并导航过去。不点、不填、不碰凭据(跨进凭据面或执行面的**参数**在这一档一律被拒:`revealSecrets`,以及 `browser_wait_for` 的 `js`——它是页面主世界的任意求值)。**如实说明边界**:导航本身会以你的身份发 GET 请求,个别站点的退订/注销就是 GET。整份 `tools/list` 在这一档约 20 KB(完整档约 36 KB),每一次请求都省。
265
+ - `observe` —— 读页面、截图、看网络、开自己的标签页并导航过去。不点、不填、不碰凭据(跨进凭据面或执行面的**参数**在这一档一律被拒:`revealSecrets`,以及 `browser_wait_for` 的 `js`——它是页面主世界的任意求值)。**如实说明边界**:导航本身会以你的身份发 GET 请求,个别站点的退订/注销就是 GET。整份 `tools/list` 在这一档约 15 KB(完整档约 27 KB),每一次请求都省。
265
266
  - `full`(默认)—— 全部工具:点击/输入、`eval` / `cdp`(任意代码)、cookies 导入导出(整份登录态)、`websocket`、`upload_file`。
266
267
  - 老配置里的 `readonly` / `standard` 仍然认:分别按 `observe` / `full` 生效(`standard` 往宽松侧迁移,不悄悄削减你已有的能力)。
267
268
  - **`disable` / `enable`** 在档位之上单独关 / 开某个工具(全名,`browser_` 开头)。两边都写了同一个工具时,`disable` 赢。
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Agent in Chrome",
4
- "version": "0.55.5",
4
+ "version": "0.56.0",
5
5
  "description": "让 AI agent 操作你已经登录的那个 Chrome 标签页,复用你现有的登录态。 · by Liang (liangai.org)",
6
6
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6Jtdbvmd/bUVxIn9YXdLBw9idVVJwXfCHCGYkPZ0Wp8YcIRBPj10a6L4tTF6h78cLjvgowiZmCAdiUZekjBdPrKJT9nhkGIX9yER3DfRpk0NOkTxum95Eb/K6Y4U/3q1TbhFkebBFZAcPG6O5/Nh8qnTiEuN/EFB3PqlODh4UInLxYbGsHV5vp4WXxfGOt1fF3VkekS7T1gPndijbBBeriv61eb7KguMNrEbid+p07kBPDZ6D3mp4JT6eqsfoPgK01QISBMrJgou0ra9Z4t+bhPvsoe2xAkr8X5iojSAVKUs1UKyKueV2WJ1JPqdAFIRckWwZ4sqEpk/LenKFljTiQIDAQAB",
7
7
  "minimum_chrome_version": "125",