Skip to main content

browser_control/session/
mod.rs

1//! Engine-agnostic page operations shared by CLI and MCP.
2//!
3//! The CLI surface (`cookies`, `fetch`, `storage`, `eval`, …) and the MCP
4//! tools (`navigate`, `get_dom`, `screenshot`, `fetch`, `select_element`)
5//! both need the same primitives: attach to a page target, evaluate a script,
6//! navigate, capture a screenshot. This module provides those once instead
7//! of duplicating them per consumer.
8
9pub mod attach;
10pub mod backend;
11pub mod capture;
12pub mod cdp_session;
13pub mod crash;
14pub mod foreground;
15pub mod freshness;
16pub mod input;
17pub mod input_bidi;
18pub mod scratch;
19pub mod tabs;
20pub mod targets;
21
22pub use attach::{evaluate_for_origin_with_recover_once, PageSession};
23pub use backend::{open_backend, TabBackend};
24pub use crash::evaluate_with_crash_detection;
25pub use scratch::with_scratch_recovery;
26pub use tabs::{resolve_tab, tab_list, tab_open, with_named_tab_recovery};
27pub use targets::{list as list_targets, TargetInfo};