Zhuaxia Browser Extension: API-First Web Automation and Workflow under DSH

Introduction

In DeepSeek Harness (DSH), when performing web scraping or form filling, the common approach is to have the Agent repeatedly “observe the page → click and fill forms,” or to integrate Playwright independently and handle previews and manual logins separately. This results in a long pipeline where interface clues are difficult to consolidate, and verified steps are hard to reuse in subsequent sessions.

The CrawShrimp Browser Plugin (dsh-crawshrimp-browser) is a community workflow plugin designed for DSH, maintained by howtimeschange. It consolidates browser operations, live preview, manual takeover, upload/download, business verification, and reusable workflows into a single package. It organizes Agent behavior according to a “Observe → API-First Execution → Business Verification → Process Consolidation” methodology. It can run independently, requiring only DSH, Node.js, and a local Chrome/Chromium installation, without the need for the CrawShrimp backend.

What is this

dsh-crawshrimp-browser is a community plugin, currently at version v0.3.0, compatible with DSH 0.2.1-alpha.4. A single package provides tool registration, the DSH Web live preview panel, the built-in Skill crawshrimp-browser, and official CrawShrimp icon assets.

Compared to “just stacking DOM clicks,” v0.3.0 emphasizes understanding the page before executing: it probes the DOM, frames, and endpoint clues to generate a page model and strategy bundle; it prioritizes page modules/client-side calls and same-origin authenticated requests, falling back to DOM interaction only when interfaces are unclear or by capturing network evidence. Data cleaning and CSV/Excel export are handled by the CrawShrimp Data Plugin, while Word/PowerPoint tasks are handled by the CrawShrimp Office Plugin; web automation is centralized in this browser plugin.

Core Features

Browser Tools and Permissions

The plugin registers tools prefixed with crawshrimp_browser_, covering opening/navigation, observation, clicking, filling, selection, keypress, waiting, screenshots, page closing, as well as listing, offline validation, and isolated execution of portable scripts.

Basic interaction tools include:

  • crawshrimp_browser_open / navigate: Open or navigate to http/https addresses
  • crawshrimp_browser_observe: Return body text with a length limit and references (refs) to actionable elements
  • crawshrimp_browser_click / fill / select / press / wait: Operate based on refs or CSS selectors
  • crawshrimp_browser_screenshot: PNG with a size limit; pure observation does not trigger approval
  • crawshrimp_browser_pages / close: List pages within the session and close them

New capabilities in v0.3.0 (suffixed after the same prefix) include: probe (page/frame/endpoint probing and strategy bundles), evaluate / request (approval-gated page JS / same-origin API), capture_requests (bounded network evidence), upload / download (workspace-to-page file transfer with SHA-256 receipts), verify / journal (structured verification and session evidence logs), workflow (step consolidation and reuse), adapter (drafting, isolated testing, local publishing).

Write operations such as open, navigate, and click follow native DSH permissions; selecting “Full Access” (danger-full-access + never) allows automatic execution. Listing pages, observing, waiting, and screenshots are read-only and do not trigger approval. Refs obtained from observation are valid only for the current observation round and require re-observation after page changes.

Built-in Skill and Live Preview

The same package registers the Skill named crawshrimp-browser to DSH. Agents can load it via the skill tool or the skill menu. The content covers API-first principles, verification, consolidation, manual login takeover, and portable scripts, using only this plugin’s tools.

Under the DSH Web profile, the in-package client pushes actual Playwright page visuals via Chromium CDP. Select “Live Browser” in the right panel to view multi-tab previews; “Takeover” allows manual clicking and input, and “Resume Agent” returns control once completed. previewEnabled defaults to true; setting it to false disables preview registration; pure CLI profiles retain all tools.

Portable Scripts and Phased Execution

Supports an adapter directory (manifest.yaml + task .js). Scripts are executed in an isolated BrowserContext after validation, supporting bounded pagination, next_phase, reload_page, abort, and controlled file/network actions. Upload/download, structured verification, and workflow consolidation are consistent with the tools mentioned above, constrained by phase, pagination, time, and output limits.

Installation and Activation

Environment requirements: Node.js ^22.19.0 || >=24.0.0, with Chrome or Chromium installed locally; the package contains only the Playwright driver and does not include browser binaries.

Install to the Web profile using the official DSH plugin loader:

dsh plugin --profile web add -w github:howtimeschange/dsh-crawshrimp-browser#v0.3.0
dsh --profile web

The loader applies the in-package cordis.patch.yml. Common configuration items include channel, headless, maxPages, scriptTimeoutMs, workspaceDir, adapterRoots, etc. To specify an executable file, you can set executablePath (taking precedence over channel) or cdpEndpoint in the profile overlay; existing Playwright exported login states can be configured via read-only storageStatePath (≤5 MiB). To require visible login, set headless: false.

Typical Usage

  1. Install the plugin using the command above and start dsh --profile web.
  2. In the session, have the Agent load the crawshrimp-browser Skill, then open the target webpage (e.g., by calling crawshrimp_browser_open).
  3. Select “Live Browser” from the right panel to view the page; use “Takeover” if manual login or page modification is needed, and “Resume Agent” after completion.
  4. For complex e-commerce or table pages, configure portable script adapters: first discover and validate using crawshrimp_browser_script_list / script_validate, then execute in an isolated context using script_run and save JSON artifacts; probing and API-first paths can be combined with tools like probe, capture_requests, request, etc.

Scripts and page tools reuse the browser connection of the same session, but each script run creates a new independent BrowserContext and does not occupy the interactive DSH preview page.

Use Cases and Notes

Suitable for web automation within DSH, e-commerce page data collection (table reading, bounded pagination, parameter validation), and Agent collaboration requiring “visible pages and manual takeover.” When分工 (division of labor) with the data and Office packages is clear, export and document generation can be left to the corresponding plugins.

Before installation, please review the GitHub Repository source code and MIT license. The plugin runs with the current DSH process permissions; write operations and evaluate/request are still subject to DSH approval policies; it will fail closed if there is no approval service. The community plugin directory SkillHub Entry is not officially affiliated with DeepSeek / High-Flyer and should not be treated as an official app store.

For local development verification, you can use npm ci, npm run check, npm test within the repository; tests will launch headless Chrome to access local synthetic pages and will not access real e-commerce sites.

Conclusion

The CrawShrimp Browser Plugin integrates API-first automation, live preview, manual takeover, file transfer, verification, and workflow consolidation into a single DSH pipeline, without requiring the CrawShrimp backend. To further understand the tool list and Skill examples, please read skills/crawshrimp-browser/SKILL.md in the repository and the Harness Source Code Capability Comparison.

  • Directory Page: https://www.skillhub.cn/plugins/howtimeschange/dsh-crawshrimp-browser
  • GitHub: https://github.com/howtimeschange/dsh-crawshrimp-browser
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye