mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 21:39:23 +08:00
fix: 同步 web-access 显式加载与工具模型名称 (#245)
同步 web-access 3.7.2 双语指引、参考文档与翻译新鲜度;保留原 provides ID 和执行治理。
This commit is contained in:
4 files changed
+24
-13
No files matched your search
@@ -15,7 +15,7 @@ description: >-
|
||||
新闻、网址、URL、找一下、搜一下、查一下、小红书、B站、微博、飞书、Twitter、
|
||||
推特、X、知乎、公众号、已登录、登录状态。
|
||||
license: MIT
|
||||
version: 3.7.1
|
||||
version: 3.7.2
|
||||
compatibility: Requires a DesireCore build with the bundled external-browser Playwright runtime; Chrome/Edge/Chromium remains separately installed. Builds advertising BrowserExternalLaunch can start it through tool approval in an isolated profile; older builds require manual CDP startup.
|
||||
type: procedural
|
||||
risk_level: low
|
||||
@@ -45,7 +45,7 @@ provides:
|
||||
- LocalBookmarks
|
||||
metadata:
|
||||
author: desirecore
|
||||
updated_at: '2026-10-24'
|
||||
updated_at: '2026-11-02'
|
||||
i18n:
|
||||
default_locale: en-US
|
||||
source_locale: zh-CN
|
||||
@@ -57,14 +57,14 @@ metadata:
|
||||
short_desc: 联网搜索、网页抓取、内置受管浏览器登录态访问与取文、研究调研工作流
|
||||
description: 联网访问工具包——搜索公开页面、Jina 优化抓取、内置受管浏览器完成登录态访问与取文,以及用户点名时接管他自己的 Chrome/Edge/Chromium。 外部浏览器需单独安装并满足其使用条款;提供启动工具的客户端可经审批启动,旧客户端需手动开启调试。 支持新客户端按显式路径审批启动系统浏览器;原生启动与 CDP 自动化就绪分别核验,依赖从随包资产离线准备。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:9c55a2059eeb4bf1
|
||||
source_hash: sha256:94fb9908192c9a7c
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Web Access
|
||||
short_desc: Web search, page fetching, logged-in access via the governed built-in browser, research workflows
|
||||
description: A web-access toolkit — search public pages, fetch heavy pages via Jina Reader, reach and read logged-in sites through the governed built-in browser, and drive the user's named Chrome/Edge/Chromium over CDP on request. The external browser is separately installed and subject to its usage terms; clients with the launch tool support approved startup, while older clients require manual debugging startup. New clients support approved native launch by explicit executable path; native startup and CDP automation readiness are verified separately, with automation dependencies prepared from bundled offline assets.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:9c55a2059eeb4bf1
|
||||
source_hash: sha256:94fb9908192c9a7c
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -125,9 +125,11 @@ When you call `Skill('web-access')`, the following tools are injected into the c
|
||||
| BrowserImport | Import Cookies from the user's Chrome/Edge/Firefox/Safari profile (human-approved; **needs `browser.import.*` granted by the Host — not available to a plain `create_space` session**) |
|
||||
| BrowserShare | Delegate a Space/Session to another Agent (isolated / snapshot / copy-on-write / live) |
|
||||
| SitePatternRead / SitePatternWrite | Per-domain "site experience" (AgentFS three-layer) |
|
||||
| LocalBookmarks | Search local Chrome bookmarks / history |
|
||||
| SearchBrowserUrls | Read-only search of local Chrome bookmarks / history; registered ID and older-client declaration: `LocalBookmarks` |
|
||||
|
||||
> **Developer-tool actions are not in the table above**: network observe / intercept / modify and network profiles, cookies and site storage, console reads, performance metrics, coverage, cache, service workers, extensions, tracing, opening DevTools and raw CDP (`cdp.raw`) belong to a separate `BrowserDevtools` tool on newer clients, and this skill does not inject it. When you need one, first call `DiscoverTools(query="select:BrowserDevtools")` to load it; its parameters match BrowserAct (`action` + `sessionId` / `tabId` + `params`). If it is not found, the client predates the split: call the same action with the same parameters on `BrowserAct`.
|
||||
> **Developer-tool actions are not in the table above**: network observe / intercept / modify and network profiles, cookies and site storage, console reads, performance metrics, coverage, cache, service workers, extensions, tracing, opening DevTools and raw CDP (`cdp.raw`) belong to a separate `BrowserDevtools` tool on newer clients, and this skill does not inject it. Check the actual declarations and schemas first. If `LoadTools` is declared, use `ToolCatalog` when available to read the authorized contract, then call `LoadTools(names=["BrowserDevtools"])`. If the catalog is unavailable, load only an exact name already known from the current contract; the loader still checks current authority. Catalog queries do not load tools or grant permission. Parameters match BrowserAct (`action` + `sessionId` / `tabId` + `params`). Only when the actual declarations have no `LoadTools` and include `DiscoverTools` with a schema accepting `query`, use the older signature `DiscoverTools(query="select:BrowserDevtools")`. A missing or refused tool does not establish the client version; when neither matching loader is available, report the limitation rather than seeking extra permissions. Use the same action and parameters on `BrowserAct` only when its declared schema actually supports that action.
|
||||
>
|
||||
> **Control status and legacy handback**: only when already declared or available in the current authorized catalog, `BrowserControlStatus` reads the current control state; earlier declarations may use `BrowserTakeover(action="status")`, subject to their actual schema. `BrowserLegacyHandback(action="handback", sessionId, agentId?)` is only for handing a legacy user-owned session back to an Agent, through the original approval and authority checks. This skill does not unlock either tool. A session paused by user interaction requires the user's explicit request to continue before `BrowserResume`; neither status nor legacy handback resumes it, and interrupted commands must not be replayed.
|
||||
|
||||
> **Important**: before `Skill('web-access')` is called, none of these tools appear in the LLM tools list — default conversations don't pay their token cost. See [references/browser-tools.md](references/browser-tools.md).
|
||||
>
|
||||
|
||||
@@ -36,9 +36,11 @@ web-access 是一个**流程型技能(Procedural Skill)**,提供四层互
|
||||
| BrowserImport | 从用户 Chrome/Edge/Firefox/Safari 配置导入 Cookie(需人工审批;**还需 Host 授予 `browser.import.*`,普通 `create_space` 会话拿不到**) |
|
||||
| BrowserShare | 把 Space/Session 委派给其他 Agent(隔离 / 快照 / 写时复制 / 实时共享) |
|
||||
| SitePatternRead / SitePatternWrite | 按域名累积"站点经验"(AgentFS 三层) |
|
||||
| LocalBookmarks | 检索本地 Chrome 书签 / 历史 |
|
||||
| SearchBrowserUrls | 只读检索本地 Chrome 书签 / 历史;原注册 ID 与旧客户端声明名为 `LocalBookmarks` |
|
||||
|
||||
> **开发者工具类动作不在上表**:网络观察 / 拦截 / 改写与网络配置、Cookie 与站点存储、Console 读取、性能指标、覆盖率、缓存、Service Worker、扩展、Tracing、打开 DevTools 与原始 CDP(`cdp.raw`),在较新的客户端里由独立的 `BrowserDevtools` 承担,它不随本技能注入。需要时先调用 `DiscoverTools(query="select:BrowserDevtools")` 加载,参数与 BrowserAct 相同(`action` + `sessionId` / `tabId` + `params`);查不到说明客户端早于拆分,同样的 action 与参数直接在 `BrowserAct` 上调用。
|
||||
> **开发者工具类动作不在上表**:网络观察 / 拦截 / 改写与网络配置、Cookie 与站点存储、Console 读取、性能指标、覆盖率、缓存、Service Worker、扩展、Tracing、打开 DevTools 与原始 CDP(`cdp.raw`),在较新的客户端里由独立的 `BrowserDevtools` 承担,它不随本技能注入。先检查本次实际声明与 Schema。已声明 `LoadTools` 时,在 `ToolCatalog` 可用的情况下查询已获准合同,再调用 `LoadTools(names=["BrowserDevtools"])` 显式加载;目录不可用时只按当前合同中已知的明确名称加载,仍由加载器核验本次权限。目录查询不会加载工具或增加权限。参数与 BrowserAct 相同(`action` + `sessionId` / `tabId` + `params`)。只有实际声明没有 `LoadTools`、同时提供且 Schema 仍接受 `query` 的 `DiscoverTools` 时,才使用旧签名 `DiscoverTools(query="select:BrowserDevtools")`。工具缺席或拒绝不能证明客户端版本;两种匹配的加载器均不可用时如实说明限制,不要求额外授予权限。只有 `BrowserAct` 当前声明的 Schema 确实支持该 action 时,才在它上面使用同样的 action 与参数。
|
||||
>
|
||||
> **控制状态与旧版交还**:仅在当前已声明或获准目录提供时,`BrowserControlStatus` 只读查询当前控制状态;历史声明名可能为 `BrowserTakeover(action="status")`,以实际 Schema 为准。`BrowserLegacyHandback(action="handback", sessionId, agentId?)` 仅把旧版 user-owned Session 的控制权交回 Agent,仍走原审批与权限检查;本技能不解锁这两个工具。因用户交互暂停的会话,须用户明确要求继续后才能调用 `BrowserResume`;状态查询与旧版交还均不恢复它,也不得重放被打断的命令。
|
||||
|
||||
> **重要**:未调用 Skill('web-access') 之前,这些工具**不会**出现在 LLM 的 tools 列表里——默认对话不消耗其 token。详见 [references/browser-tools.md](references/browser-tools.md)。
|
||||
>
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "3.7.1",
|
||||
"version": "3.7.2",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-10-14",
|
||||
"value": "2026-11-02",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -225,9 +225,16 @@ BrowserDevtools:
|
||||
params: {}
|
||||
```
|
||||
|
||||
- 它不隐藏,但也不随 web-access 注入:需要时先 `DiscoverTools(query="select:BrowserDevtools")` 加载。参数形状与
|
||||
- 它不隐藏,但也不随 web-access 注入:当前实际声明有 `LoadTools` 时,在目录可用的情况下先用
|
||||
`ToolCatalog(query="select:BrowserDevtools")` 核对说明与参数,再用 `LoadTools(names=["BrowserDevtools"])` 明确加载。
|
||||
目录不可用时只加载当前合同已知的明确名称,仍受加载器的权限核验。
|
||||
查询只读,不会加载工具或增加权限。参数形状与
|
||||
BrowserAct 相同(`action` + `sessionId` / `tabId` + 随 action 变化的 `params`),能力、来源、审批与宿主隔离检查也完全一致
|
||||
- 查不到这个工具说明客户端早于拆分:同样的 action 与参数直接在 BrowserAct 上调用
|
||||
- 只有当前实际声明没有 `LoadTools`、同时有且 Schema 仍接受 `query` 的 `DiscoverTools` 时,
|
||||
才用 `DiscoverTools(query="select:BrowserDevtools")` 加载;不能因 `LoadTools` 缺席或调用失败推断版本或回退旧签名。
|
||||
两种匹配加载器都不可用时如实说明,不要求额外授予权限。
|
||||
- `BrowserDevtools` 不可用不代表客户端早于拆分。只有 `BrowserAct` 的当前声明 Schema 仍允许该 action 时,
|
||||
才使用同样的 action 与参数调用 `BrowserAct`;否则按当前目录和工具回执报告不可用,不推断版本或绕过授权
|
||||
- 会改变会话网络、存储或扩展状态的动作(如 `storage.clear`、`network.modify`、`extension.install`)按受管能力走审批,
|
||||
`cdp.raw` 永远人工审批(见「已知边界」);只读的 `console.read`、`performance.metrics`、`service-worker.list` 对观察者开放
|
||||
|
||||
@@ -384,7 +391,7 @@ SitePatternWrite:
|
||||
| 错误 | 原因 | 解决 |
|
||||
|------|------|------|
|
||||
| `该旧 BrowserXxx/cdp-proxy 入口已停用` | 还在调 v2.0 的旧工具 | 改用 BrowserManage / BrowserSnapshot / BrowserAct |
|
||||
| `action="…" 已从 BrowserAct 拆到 BrowserDevtools` | 在 BrowserAct 上调了开发者工具类动作 | 先 `DiscoverTools(query="select:BrowserDevtools")` 加载,再用同样的 action 与参数调用 BrowserDevtools |
|
||||
| `action="…" 已从 BrowserAct 拆到 BrowserDevtools` | 在 BrowserAct 上调了开发者工具类动作 | 当前实际声明提供时先用 `ToolCatalog(query="select:BrowserDevtools")` 核对,再 `LoadTools(names=["BrowserDevtools"])` 明确加载,用同样的 action 与参数调用 BrowserDevtools;旧客户端加载兼容见上文 BrowserDevtools 节 |
|
||||
| `BROWSER_TAB_HOST_NOT_FOUND` | 标签页宿主真的没了(渲染进程崩溃/销毁) | 重建 Session。命令超时**不再**引发此错误——超时只 stop 这一条命令,标签页保留 |
|
||||
| `BROWSER_COMMAND_DEADLINE_EXCEEDED` | 单条命令超 30 s | 标签页仍停在上一页/空白页,直接重试;慢加载常态不算故障 |
|
||||
| `BROWSER_VIEWPORT_UNAVAILABLE` | embedded 多标签会话的后台 tab 没有可用视口 | 先 `tab.activate` 再截图(秒级快判,不是挂死) |
|
||||
|
||||
Reference in new issue
Block a user