docs: add Usage section with hands + deepdive + raw CDP examples#12
Open
askalf wants to merge 1 commit into
Open
docs: add Usage section with hands + deepdive + raw CDP examples#12askalf wants to merge 1 commit into
askalf wants to merge 1 commit into
Conversation
Renames the existing Use it heading to Usage and adds three subsections showing the two known callers (hands, deepdive) connecting via chromium.connectOverCDP, plus a raw CDP example demonstrating the JSON-RPC wire format for callers without a Playwright/Puppeteer dependency. Closes OPS-93F1996C6F064F6EB9BDEA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames the existing
## Use itheading to## Usageand adds three caller-focused subsections requested in OPS-93F1996C6F064F6EB9BDEA:chromium.connectOverCDPsnippet shaped likehands/src/tools/read-page.ts, with aBROWSER_BRIDGE_URLenv knob for swapping the bridge address in a shared docker network.BrowserSession.start()variant that swaps deepdive's localchromium.launch()forchromium.connectOverCDP(). Notes that deepdive's existingSTEALTH_ARGSare redundant when the bridge handles the launch.curl /json/versionto fetchwebSocketDebuggerUrl, plus a minimalPage.navigateJSON-RPC frame so callers without Playwright/Puppeteer can see the actual wire format.All snippets are grounded in the bridge's own
launch.mjs(port 9222 via socat,/json/versionhealthcheck endpoint) and the current code in askalf/hands and askalf/deepdive on master.Closes OPS-93F1996C6F064F6EB9BDEA