Skip to main content

Crate eoka_agent

Crate eoka_agent 

Source
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§

AgentPage
Wraps a Page with agent-friendly observation and interaction methods.
Browser
The main stealth browser
InteractiveElement
An interactive element on the page, identified by index.
ObserveConfig
Configuration for observation behavior.
ObserveDiff
Result of a diff-based observation.
Session
A browser session that owns its browser and page. This is the primary API for most use cases.
StealthConfig
Configuration for stealth features

Enums§

Error
Error type for eoka