Expand description
§eoka-agent
AI agent interaction layer for browser automation. Use directly or via MCP.
§Quick Start
use eoka_agent::Session;
let mut session = Session::launch().await?;
session.goto("https://example.com").await?;
// Observe → get compact element list → act by index
session.observe().await?;
println!("{}", session.element_list());
session.click(0).await?;
session.close().await?;Re-exports§
pub use spa::RouterType;pub use spa::SpaRouterInfo;pub use target::BBox;pub use target::LivePattern;pub use target::Resolved;pub use target::Target;
Modules§
- annotate
- Screenshot annotation — injects numbered labels over interactive elements.
- captcha
- observe
- DOM enumeration — finds all interactive elements on the page.
- spa
- SPA router detection and manipulation.
- target
- Live element targeting - resolves elements at action time via JS.
Structs§
- Browser
- The main stealth browser
- Interactive
Element - An interactive element on the page, identified by index.
- Observe
Config - Configuration for observation behavior.
- Observe
Diff - Result of a diff-based observation.
- Session
- A browser session that owns its browser and page.
This is the primary API for library usage. The MCP server uses raw
Pagedirectly. - Stealth
Config - Configuration for stealth features
Enums§
- Error
- Error type for eoka