Skip to main content

Module attach

Module attach 

Source
Expand description

Attach to a page target and expose engine-agnostic high-level operations.

PageSession hides the CDP/BiDi split behind a single async API (evaluate, navigate, screenshot). The CLI subcommands instantiate a fresh session per call; the MCP server may pre-build a session backed by a long-lived BiDi client via PageSession::from_bidi_cache.

Structs§

BidiPage
CdpPage

Enums§

PageSession
A bound page-level session. Variants are not constructed directly outside this module; use PageSession::attach.