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 targets;
11
12pub use attach::PageSession;
13pub use targets::{list as list_targets, TargetInfo};