pub struct ToolBrowserDef {
pub kind: Option<String>,
pub description: Option<String>,
pub timeout_ms: Option<i32>,
pub max_navigations: Option<i32>,
pub max_duration_ms: Option<i32>,
pub allowed_domains: Vec<String>,
pub blocked_domains: Vec<String>,
pub use_vision: Option<bool>,
pub allow_network: Option<bool>,
}Expand description
Browser tool definition — accessibility-first browser automation.
Fields§
§kind: Option<String>§description: Option<String>Description of what this browser tool does.
timeout_ms: Option<i32>Timeout for individual actions in milliseconds (default: 30000).
Maximum navigations per session (default: 50).
max_duration_ms: Option<i32>Maximum session duration in milliseconds (default: 300000).
allowed_domains: Vec<String>Allowed domain patterns (glob). Empty = all allowed.
blocked_domains: Vec<String>Blocked domain patterns (glob). Takes precedence over allowed.
use_vision: Option<bool>Use vision (screenshots) instead of accessibility tree. Default: false.
allow_network: Option<bool>Whether to allow network access (default: true for browser tools).
Trait Implementations§
Source§impl Clone for ToolBrowserDef
impl Clone for ToolBrowserDef
Source§fn clone(&self) -> ToolBrowserDef
fn clone(&self) -> ToolBrowserDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolBrowserDef
impl Debug for ToolBrowserDef
Source§impl<'de> Deserialize<'de> for ToolBrowserDef
impl<'de> Deserialize<'de> for ToolBrowserDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolBrowserDef
impl RefUnwindSafe for ToolBrowserDef
impl Send for ToolBrowserDef
impl Sync for ToolBrowserDef
impl Unpin for ToolBrowserDef
impl UnwindSafe for ToolBrowserDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more