Tencent/BrowserSkill--packages-dsh-plugin-browserskill ↗★ 8.1k

@wxg-prc-cpg/browser-skill-dsh-plugin

向模型开放浏览器自动化控制工具 将BrowserSkill的浏览器操作能力赋予DSH,适合需要AI执行网页自动化任务的用户,需安装bsk CLI。

套件
@wxg-prc-cpg/browser-skill-dsh-plugin
相容性
待驗證
Harness 依賴範圍
^0.1.5-rc.3 || ^0.2.0-rc.1
Cordis 依賴範圍
^4.0.2
版本
0.3.2
授權
MIT
最近更新
2026年9月30日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Tencent/BrowserSkill#3f10983c09fcd443c7420830ab984c9d409954bf&path:packages/dsh-plugin-browserskill

Configuration

After installing the plugin, edit your profile's cordis.patch.yml. For the web profile, the default location is ~/.dsh/profiles/web/cordis.patch.yml. If you set DSH_HOME, use $DSH_HOME/profiles/web/cordis.patch.yml instead. Replace web with your profile name as needed.

If the file contains only comments and [], keep the comments and replace [] with the YAML below. If it already contains patch entries, add this entry to the existing list or edit its existing id: browserskill entry. Keep a single top-level YAML list. This overrides the plugin registered by the installed bundle:

- id: browserskill
  config:
    bskPath: bsk
    defaultTimeoutMs: 120000
    maxSessions: 5
    observationEnabled: true
    thumbnailIntervalMs: 1500
    idleIntervalMs: 8000
    lazyTools: true

Change bskPath to the full path of your CLI binary if it is not on dsh's PATH. A patch replaces the entry's entire config object, so keep all overrides you need together in that object.

Configuration changes follow dsh.profile.patchReload in the profile's package.json: live (the default for web) applies changes when you save the patch file; startup requires restarting the profile. Restart after upgrading the plugin in either case.

All fields are optional; omitted fields use the defaults below:

OptionDefaultPurpose
bskPathbskPath to the CLI binary.
sessionStateDirectoryScoped under $BSK_HOME/dsh-starts (or ~/.bsk/dsh-starts)Durable recovery records; optionally isolate by host/profile.
defaultTimeoutMs120000Default command execution timeout in milliseconds; output collection after exit has a separate 2-second limit.
maxSessions5Maximum concurrent sessions started by this plugin.
observationEnabledtrueEnable live browser observation.
thumbnailIntervalMs1500Screenshot interval for active sessions, in milliseconds.
idleIntervalMs8000Screenshot interval for idle sessions and the recent-activity window, in milliseconds.
lazyToolstrueReveal the browser tools when the skill is invoked. Set false to register them at startup.

With lazyTools: true, only the skill's catalog entry is initially advertised to the model. The six browser_* tool schemas are added to the system prompt after the browser-skill skill is successfully invoked, either by the model or through /browser-skill. Set lazyTools: false to make the tools available immediately.

After a plugin reload, a live or resumed conversation's successful skill invocation restores the tools from its stored history. If an older plugin reports unknown tool "browser_session", invoke skill browser-skill again, or set lazyTools: false in the profile patch as a temporary workaround.