browsing 0.1.3

Lightweight MCP/API for browser automation: navigate, get content (text), screenshot. Parallelism via RwLock.
Documentation
//! Action handlers for browser automation
//!
//! This module contains individual action handlers organized by functionality.

mod advanced;
mod content;
pub mod extract;
mod interaction;
mod navigation;
mod tabs;

pub use advanced::AdvancedHandler;
pub use content::ContentHandler;
pub use interaction::InteractionHandler;
pub use navigation::NavigationHandler;
pub use tabs::TabsHandler;

use crate::agent::views::ActionResult;
use crate::error::Result;
use crate::tools::views::{ActionContext, ActionParams};
use async_trait::async_trait;

/// Base trait for action handlers
#[async_trait]
pub trait Handler: Send + Sync {
    /// Handle an action with the given parameters and context
    async fn handle(
        &self,
        params: &ActionParams<'_>,
        context: &mut ActionContext<'_>,
    ) -> Result<ActionResult>;
}