The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(browser): browser_cdp and browser_dialog still need a configured CDP endpoint
Teknium7ba9d256bd2c
diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.mdindex 26968322e76..27f14469f6e 100644--- a/website/docs/reference/tools-reference.md+++ b/website/docs/reference/tools-reference.md@@ -16,13 +16,13 @@ In addition to built-in tools, Hermes can load tools dynamically from MCP server## `browser` toolset-All four tools drive the same browser session — the Chromium Hermes launches, a cloud browser, or the browser attached with `/browser connect`. See [Browser Automation](../user-guide/features/browser.md).+`browser_exec` and `browser_vault` drive the browser session — the Chromium Hermes launches, a cloud browser, or the browser attached with `/browser connect`. `browser_cdp` and `browser_dialog` are offered only while a CDP endpoint is configured (`/browser connect`, `BROWSER_CDP_URL` or `browser.cdp_url`) and act on that browser; they are absent for launched and cloud sessions. See [Browser Automation](../user-guide/features/browser.md).| Tool | Description | Requires environment ||------|-------------|----------------------|| `browser_exec` | Drive a real web browser by running Python with pre-imported helpers (`new_tab`, `goto_url`, `wait_for_load`, `page_info`, `js`, `fill_input`, `click_at_xy`, `capture_screenshot`, `cdp`, `ensure_real_tab`). Browser state persists across calls; Python variables do not. `session` isolates concurrent work; `timeout_s` defaults to 300 (max 1800). | `terminal` toolset |-| `browser_cdp` | Send a raw Chrome DevTools Protocol command. Escape hatch for browser operations the `browser_exec` helpers don't cover. See https://chromedevtools.github.io/devtools-protocol/ | — |-| `browser_dialog` | Respond to a native JavaScript dialog (alert / confirm / prompt / beforeunload) blocking the page: `browser_dialog(action='accept'\|'dismiss')`, with `prompt_text` for `prompt()` and `dialog_id` when several are queued. | — |+| `browser_cdp` | Send a raw Chrome DevTools Protocol command. Escape hatch for browser operations the `browser_exec` helpers don't cover. See https://chromedevtools.github.io/devtools-protocol/ | CDP endpoint |+| `browser_dialog` | Respond to a native JavaScript dialog (alert / confirm / prompt / beforeunload) blocking the page: `browser_dialog(action='accept'\|'dismiss')`, with `prompt_text` for `prompt()` and `dialog_id` when several are queued. | CDP endpoint || `browser_vault` | Use saved logins, passwords, cards, addresses and one-time codes on the current page without secrets entering the conversation. Actions: `list`, `fill`, `save_login`, `enter_code`, `unlock`. | — |## `clarify` toolsetdiff --git a/website/docs/user-guide/features/browser.md b/website/docs/user-guide/features/browser.mdindex ca49958e731..9234b6bceba 100644--- a/website/docs/user-guide/features/browser.md+++ b/website/docs/user-guide/features/browser.md@@ -9,8 +9,9 @@ sidebar_position: 5The `browser` toolset gives the agent a real web browser. One tool does thedriving — **`browser_exec`**, which runs model-written Python against the-browser over the Chrome DevTools Protocol (CDP) — and three companion tools-work on the same browser session:+browser over the Chrome DevTools Protocol (CDP) — with three companion tools+(`browser_cdp` and `browser_dialog` only while a CDP endpoint is configured, see+[Companion tools](#companion-tools)):| Tool | Purpose ||------|---------|@@ -523,9 +524,11 @@ the session back to the agent. See that page for the profile location and how## Companion tools-`browser_cdp`, `browser_dialog` and `browser_vault` operate on the same browser-session `browser_exec` drives — local Chromium, a cloud browser, or the browser-attached with `/browser connect`.+`browser_vault` operates on the same browser session `browser_exec` drives —+local Chromium, a cloud browser, or the browser attached with `/browser connect`.+`browser_cdp` and `browser_dialog` are offered only while a CDP endpoint is+configured — `/browser connect`, `BROWSER_CDP_URL` or `browser.cdp_url` — and act+on that browser; a launched local or cloud session does not bring them.### `browser_cdp`diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.mdindex e991e163acb..d984da01b1c 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md@@ -16,13 +16,13 @@ description: "Hermes 内置工具权威参考,按工具集分组"## `browser` 工具集-这四个工具驱动同一个浏览器会话——Hermes 启动的 Chromium、云端浏览器,或通过 `/browser connect` 连接的浏览器。参见[浏览器自动化](../user-guide/features/browser.md)。+`browser_exec` 和 `browser_vault` 驱动浏览器会话——Hermes 启动的 Chromium、云端浏览器,或通过 `/browser connect` 连接的浏览器。`browser_cdp` 和 `browser_dialog` 仅在配置了 CDP 端点(`/browser connect`、`BROWSER_CDP_URL` 或 `browser.cdp_url`)时提供,并作用于该浏览器;Hermes 启动的会话和云端会话中没有这两个工具。参见[浏览器自动化](../user-guide/features/browser.md)。| 工具 | 描述 | 所需环境 ||------|------|----------|| `browser_exec` | 通过运行预导入辅助函数(`new_tab`、`goto_url`、`wait_for_load`、`page_info`、`js`、`fill_input`、`click_at_xy`、`capture_screenshot`、`cdp`、`ensure_real_tab`)的 Python 驱动真实浏览器。浏览器状态在调用之间保持,Python 变量不保留。`session` 用于隔离并发任务;`timeout_s` 默认 300(最大 1800)。 | `terminal` 工具集 |-| `browser_cdp` | 发送原始 Chrome DevTools Protocol 命令。用于 `browser_exec` 辅助函数未覆盖的浏览器操作的逃生舱口。参见 https://chromedevtools.github.io/devtools-protocol/ | — |-| `browser_dialog` | 响应阻塞页面的原生 JavaScript 对话框(alert / confirm / prompt / beforeunload):`browser_dialog(action='accept'\|'dismiss')`,`prompt()` 使用 `prompt_text`,多个对话框排队时使用 `dialog_id`。 | — |+| `browser_cdp` | 发送原始 Chrome DevTools Protocol 命令。用于 `browser_exec` 辅助函数未覆盖的浏览器操作的逃生舱口。参见 https://chromedevtools.github.io/devtools-protocol/ | CDP 端点 |+| `browser_dialog` | 响应阻塞页面的原生 JavaScript 对话框(alert / confirm / prompt / beforeunload):`browser_dialog(action='accept'\|'dismiss')`,`prompt()` 使用 `prompt_text`,多个对话框排队时使用 `dialog_id`。 | CDP 端点 || `browser_vault` | 在当前页面使用已保存的登录信息、密码、银行卡、地址和一次性验证码,机密信息不会进入对话。操作:`list`、`fill`、`save_login`、`enter_code`、`unlock`。 | — |## `clarify` 工具集diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.mdindex d6c7ffdd25c..b725ac669b4 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md@@ -7,7 +7,7 @@ sidebar_position: 5# 浏览器自动化-`browser` 工具集为 Agent 提供一个真实的网页浏览器。真正负责驱动的只有一个工具——**`browser_exec`**,它通过 Chrome DevTools Protocol(CDP)在浏览器上运行模型编写的 Python;另外三个配套工具作用于同一个浏览器会话:+`browser` 工具集为 Agent 提供一个真实的网页浏览器。真正负责驱动的只有一个工具——**`browser_exec`**,它通过 Chrome DevTools Protocol(CDP)在浏览器上运行模型编写的 Python;另有三个配套工具(`browser_cdp` 和 `browser_dialog` 仅在配置了 CDP 端点时提供,见[配套工具](#配套工具)):| 工具 | 用途 ||------|------|@@ -334,7 +334,7 @@ google-chrome \## 配套工具-`browser_cdp`、`browser_dialog` 和 `browser_vault` 作用于 `browser_exec` 正在驱动的同一个浏览器会话——本地 Chromium、云端浏览器,或通过 `/browser connect` 连接的浏览器。+`browser_vault` 作用于 `browser_exec` 正在驱动的同一个浏览器会话——本地 Chromium、云端浏览器,或通过 `/browser connect` 连接的浏览器。`browser_cdp` 和 `browser_dialog` 仅在配置了 CDP 端点(`/browser connect`、`BROWSER_CDP_URL` 或 `browser.cdp_url`)时提供,并作用于该浏览器;Hermes 启动的本地会话或云端会话不会带来这两个工具。### `browser_cdp`