1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Chrome DevTools Protocol (CDP) client for browser automation.
//!
//! Connects to a Chrome instance started with `--remote-debugging-port` and drives it
//! over the CDP WebSocket: navigation, DOM/JS evaluation, screenshots, network
//! interception, cookies, and more.
//!
//! Two API layers are available:
//! - [`CdpClient`]: low-level, one method per CDP command.
//! - [`BrowserAgent`] + [`BrowserAction`]: higher-level actions suited to driving
//! the browser from an LLM tool call (see [`BrowserAgent::execute_json`]).
//!
//! Enable the `blocking` feature for a synchronous API ([`blocking`]) that needs no
//! async runtime from the caller.
//!
//! # Example
//!
//! ```no_run
//! use cdp_driver::{BrowserAgent, BrowserAction, Config};
//!
//! # async fn run() -> cdp_driver::Result<()> {
//! let agent = BrowserAgent::connect_with_config(&Config::default()).await?;
//!
//! agent.execute(BrowserAction::Navigate {
//! url: "https://example.com".to_string(),
//! }).await;
//! # Ok(())
//! # }
//! ```
pub use ;
pub use CdpClient;
pub use Config;
pub use ;
pub use *;