Skip to main content

oxios_kernel/tools/browser/
mod.rs

1//! Headless browser integration for Oxios agents.
2//!
3//! Single gateway: `BrowserTool` wraps `oxibrowser_core::Browser` behind
4//! the `AgentTool` interface. Every browser operation — one-shot reads,
5//! interactive sessions, and YAML script execution — goes through this
6//! one tool.
7//!
8//! ## Architecture
9//!
10//! ```text
11//! Agent → BrowserTool (AgentTool) → oxibrowser_core::Browser / Tab
12//!                                     └── ScriptRunner (run_script action)
13//! ```
14//!
15//! No external process is needed — OxiBrowser runs entirely in-process.
16//! The `oxibrowser` CLI binary is a developer debugging tool only;
17//! agents never invoke it via ExecTool.
18//!
19//! ## Feature Gate
20//!
21//! This module is only available with the `browser` feature:
22//! ```toml
23//! oxios-kernel = { features = ["browser"] }
24//! ```
25
26mod browser_tool;
27
28pub use browser_tool::BrowserTool;