Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols browser

Control a sandbox's Chrome over the Chrome DevTools Protocol

Control a sandbox’s Chrome over the Chrome DevTools Protocol

Usage

pols browser [flags]
pols browser [command]

Subcommands

Command Description
pols browser cdp Print a short-lived WebSocket URL for Playwright or Puppeteer

Flags

-h, --help   help for browser

pols browser cdp

Print a WebSocket URL for the Chrome DevTools Protocol endpoint of the Chrome on the sandbox’s desktop (started on first connect). Connect within 5 minutes; the URL grants access to that sandbox’s browser, so keep it secret. With --user, it is that sandbox user’s own Chrome, with its own profile, on the user’s own desktop.

Usage

pols browser cdp SANDBOX [flags]

Examples

pols browser cdp web
pols browser cdp web --user alice
# Playwright: await chromium.connectOverCDP(url)
# Puppeteer:  await puppeteer.connect({ browserWSEndpoint: url })

Flags

-h, --help              help for cdp
-u, --user pols users   use this sandbox user's own desktop (see pols users; default: the default user's)

The global flags work with this command too.