zaiwenJ/dsh-cdp-browser

Plugin ⭐ 0 MIT browsersecurityvisual

Zero-spawn browser automation + pixel-level visual verification as a DeepSeek Harness plugin. Drives an already-running Chrome/Edge over CDP using Node built-ins only: global fetch + global WebSocket (Node ≥ 22) + zlib PNG decode. No childprocess, no npm dependencies, no per-use approval.

catalog description:Zero-spawn CDP browser control plugin for DeepSeek Harness: screenshots, pixel assertions, page JS — no vision model, no per-use approval

Install

msedge.exe --remote-debugging-port=9222 --remote-allow-origins=* --user-data-dir=<dir> <url>
   ```

3. Restart the Web GUI. The `cdp_*` tools appear in the next session.

## Tools

| Tool | What it does |
| --- | --- |
| `cdp_status` | List tabs/targets of the CDP browser + browser version |
| `cdp_open` | Open (or reuse) a tab for a url; returns target id |
| `cdp_eval` | Evaluate JS in a page (`awaitPromise`, `returnByValue`) |
| `cdp_shot` | Navigate + PNG screenshot, saved to an absolute path |
| `cdp_assert` | Scripted interaction + deterministic checks (pixel / css / dom / js) with a pass/fail report |

## cdp_assert check shapes

Add zaiwenJ/dsh-cdp-browser to your DSH config (web profile) to enable.

README

Expand full README Collapse

README is empty.