Available on crate feature
browser only.Expand description
Browser automation (WebDriver).
Provides browser automation tools for agents:
BrowserSession- WebDriver session managementBrowserToolset- Browser tools for agents
Available with feature: browser
Modules§
Structs§
- AddCookie
Tool - Tool for adding a cookie.
- Alert
Tool - Tool for handling alerts/dialogs.
- Back
Tool - Tool for going back in browser history.
- Browser
Config - Configuration for browser sessions.
- Browser
Session - A browser session that wraps thirtyfour’s WebDriver.
- Browser
Session Pool - A pool of browser sessions keyed by user ID.
- Browser
Toolset - A toolset that provides all browser automation tools.
- Clear
Tool - Tool for clearing input fields.
- Click
Tool - Tool for clicking elements on the page.
- Close
Window Tool - Tool for closing the current window/tab.
- Delete
AllCookies Tool - Tool for deleting all cookies.
- Delete
Cookie Tool - Tool for deleting a cookie.
- Double
Click Tool - Tool for double-clicking elements.
- Drag
AndDrop Tool - Tool for drag and drop operations.
- Element
State - State information about an element.
- Element
State Tool - Tool for checking element state (visible, enabled, selected).
- Evaluate
JsTool - Tool for executing JavaScript in the browser.
- Extract
Attribute Tool - Tool for extracting attribute values.
- Extract
Links Tool - Tool for extracting links from the page.
- Extract
Text Tool - Tool for extracting text content from elements.
- File
Upload Tool - Tool for uploading files.
- Focus
Tool - Tool for focusing an element.
- Forward
Tool - Tool for going forward in browser history.
- GetCookie
Tool - Tool for getting a specific cookie by name.
- GetCookies
Tool - Tool for getting all cookies.
- Hover
Tool - Tool for hovering over elements.
- List
Windows Tool - Tool for listing all windows/tabs.
- Maximize
Window Tool - Tool for maximizing the window.
- Minimize
Window Tool - Tool for minimizing the window.
- Navigate
Tool - Tool for navigating to URLs.
- NewTab
Tool - Tool for opening a new tab.
- NewWindow
Tool - Tool for opening a new window.
- Page
Info Tool - Tool for getting page info (title, URL, etc.).
- Page
Source Tool - Tool for getting the page HTML source.
- Press
KeyTool - Tool for pressing keyboard keys.
- Print
ToPdf Tool - Tool for printing page to PDF.
- Refresh
Tool - Tool for refreshing the current page.
- Right
Click Tool - Tool for right-click (context click).
- Screenshot
Tool - Tool for taking screenshots of the page.
- Scroll
Tool - Tool for scrolling the page.
- Select
Tool - Tool for selecting options from dropdown menus.
- SetWindow
Size Tool - Tool for setting window size.
- Switch
ToDefault Content Tool - Tool for switching to the default/main content.
- Switch
ToFrame Tool - Tool for switching to a frame by index.
- Switch
ToParent Frame Tool - Tool for switching to the parent frame.
- Switch
Window Tool - Tool for switching to a window/tab.
- Type
Tool - Tool for typing text into input fields.
- Wait
ForElement Tool - Tool for waiting for an element to appear.
- Wait
ForPage Load Tool - Tool for waiting for page to load.
- Wait
ForText Tool - Tool for waiting for text to appear.
- Wait
Tool - Tool for waiting a fixed duration.
Enums§
- Browser
Profile - Pre-configured tool profiles for common use cases.
- Browser
Type - Supported browser types.
Functions§
- escape_
js_ string - Escape a string for safe interpolation into JavaScript code.
- minimal_
browser_ tools - Helper function to create a minimal browser toolset with only essential tools.
- readonly_
browser_ tools - Helper function to create a read-only browser toolset (no interaction).
- shared_
session - Create a shared browser session.