Skip to content

Add Live View and Human in the Loop feature docs#29758

Draft
kathayl wants to merge 2 commits intoproductionfrom
kliao/browser-rendering-live-view-hitl-docs
Draft

Add Live View and Human in the Loop feature docs#29758
kathayl wants to merge 2 commits intoproductionfrom
kliao/browser-rendering-live-view-hitl-docs

Conversation

@kathayl
Copy link
Copy Markdown
Contributor

@kathayl kathayl commented Apr 11, 2026

Summary

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/browser-rendering/ @mchenco, @cloudflare/pcx-technical-writing, @cloudflare/product-owners, @celso, @kathayl, @ToriLindsay

…ng, add coming-soon handoff note, style fixes
// Get the Live View URL so a human can interact with the session
const cdp = await page.createCDPSession();
const { devtoolsFrontendUrl: liveUrl } = await cdp.send(
"Cloudflare.getLiveView"
Copy link
Copy Markdown
Contributor

@meddulla meddulla Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not out yet. Users would instead create the session using POST to /devtools/browser?includeTargets=true and the use the devtoolsFrontendUrl

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and then connect to https://api.cloudflare.com/client/v4/accounts/${ACCOUNT_ID}/browser-rendering/devtools/browser/<sessionId>

);

// Share the Live View URL with the human operator
console.log(`Human input needed. Open this URL: ${liveUrl}`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add "You have to X time to complete this action or the script will continue"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, add a comment saying send to users's chat, be it slack or other.


## Use cases

- **Authentication flows**: Login pages with MFA, SSO, or CAPTCHA that cannot be bypassed programmatically
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add a note saying that we're still recognized as a bot so in many cases we may still be blocked (eg google sign on)

3. The human operator opens the Live View URL and completes the required action (logging in, solving a CAPTCHA, entering sensitive data, etc.).
4. The automation script detects that the human is done (for example, by waiting for a navigation event or polling for a page element) and resumes.

A more structured handoff flow where the agent can signal that it needs help and notify a human is coming soon.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add more highlight to this since right now, this is sort of a poor man's handoff.

| Mode | URL pattern | Description |
| --- | --- | --- |
| Tab | `https://live.browser.run/ui/view?mode=tab&wss=...` | DevTools inspector panel (Elements, Console, Network, etc.) |
| Full | `https://live.browser.run/ui/view?mode=full&wss=...` | Full browser chrome with address bar and tab strip |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer we dont announce this yet, not thoroughly tested and will be the focus of HITL.

| Tab | `https://live.browser.run/ui/view?mode=tab&wss=...` | DevTools inspector panel (Elements, Console, Network, etc.) |
| Full | `https://live.browser.run/ui/view?mode=full&wss=...` | Full browser chrome with address bar and tab strip |
| Inspector | `https://live.browser.run/ui/inspector?wss=...` | Standalone inspector view |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


3. Copy the `devtoolsFrontendUrl` and open it in your browser.

## Get the Live View URL programmatically
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, not out yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants