browser-control 0.2.1

CLI that manages browsers and exposes them over CDP/BiDi for agent-driven development. Includes an optional MCP server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Shared error types.

use thiserror::Error;

#[derive(Debug, Error)]
pub enum BrowserControlError {
    #[error("browser not found: {0}")]
    NotFound(String),
    #[error("no running browser matches the selector")]
    NoRunningMatch,
    #[error("invalid BROWSER_CONTROL value: {0}")]
    InvalidSelector(String),
    #[error("io error: {0}")]
    Io(#[from] std::io::Error),
}