Skip to main content

Module browser

Module browser 

Source
Expand description

Browser automation tools

This module provides browser automation capabilities through the agent-browser CLI.

§Architecture

  • config - Configuration types for browser settings
  • executor - Abstraction layer for executing browser commands
  • types - Data types for browser operations
  • client - High-level API for browser operations
  • tool - LLM agent tool implementation

§Usage

§As an LLM Tool

use limit_cli::tools::browser::BrowserTool;
use limit_agent::Tool;

let tool = BrowserTool::new();
let result = tool.execute(serde_json::json!({
    "action": "open",
    "url": "https://example.com"
})).await;

§As a TUI Command

/browser open https://example.com
/browser snapshot
/browser click "button.submit"
/browser close

Re-exports§

pub use action::BrowserAction;
pub use args::ArgsExt;
pub use client::BrowserClient;
pub use config::BrowserConfig;
pub use config::BrowserEngine;
pub use executor::BrowserError;
pub use executor::BrowserExecutor;
pub use executor::BrowserOutput;
pub use executor::CliExecutor;
pub use response::ok;
pub use response::ok_msg;
pub use response::Response;
pub use tool::BrowserTool;
pub use types::BoundingBox;
pub use types::Cookie;
pub use types::Request;
pub use types::SnapshotResult;
pub use types::TabInfo;

Modules§

action
Browser action enumeration for type-safe action dispatch
args
Argument extraction extension trait for JSON values
client
Browser client - shared API for browser automation
client_ext
Extension traits for BrowserClient
config
Browser configuration types
executor
Browser executor abstraction
handlers
Handler modules for browser tool
response
JSON response builder for browser tool
tool
Browser tool for LLM agent
types
Data types for browser operations