Skip to main content

Crate car_browser

Crate car_browser 

Source
Expand description

Browser automation and perception pipeline for the Common Agent Runtime.

This crate provides:

  • BrowserBackend trait: abstract interface for browser automation
  • Perception pipeline: converts raw browser state (screenshots + a11y trees) into structured UiMap data
  • Browser tool registration: registers browse_* tools with car-engine

§Architecture

car-browser is backend-agnostic. Consumers provide a BrowserBackend implementation:

  • Hydra provides TauriBackend (drives Tauri’s WebView)
  • Headless uses ChromiumBackend (chromiumoxide, behind chromium feature)
  • Tests use MockBackend

Re-exports§

pub use backend::BrowserBackend;
pub use backend::BrowserError;
pub use models::A11yNode;
pub use models::Bounds;
pub use models::Modifier;
pub use models::Viewport;
pub use models::WaitCondition;
pub use tools::BrowserToolExecutor;

Modules§

backend
Browser backend trait — the abstract interface that all browser implementations must satisfy.
models
Core browser domain types.
perception
Perception pipeline — converts raw browser state into structured UiMap data.
tools
Browser tool registration and execution for car-engine.