Skip to main content

Module session

Module session 

Source
Expand description

Engine-agnostic page operations shared by CLI and MCP.

The CLI surface (cookies, fetch, storage, eval, …) and the MCP tools (navigate, get_dom, screenshot, fetch, select_element) both need the same primitives: attach to a page target, evaluate a script, navigate, capture a screenshot. This module provides those once instead of duplicating them per consumer.

Re-exports§

pub use attach::PageSession;
pub use targets::list as list_targets;
pub use targets::TargetInfo;

Modules§

attach
Attach to a page target and expose engine-agnostic high-level operations.
targets
Unified page-target listing across CDP and BiDi.