Expand description
Browser automation tools for ADK agents.
This module provides a collection of tools for browser automation:
- Navigation:
NavigateTool,BackTool,ForwardTool,RefreshTool - Interaction:
ClickTool,DoubleClickTool,TypeTool,ClearTool,SelectTool - Extraction:
ExtractTextTool,ExtractAttributeTool,ExtractLinksTool,PageInfoTool,PageSourceTool - Screenshots:
ScreenshotTool - Waiting:
WaitForElementTool,WaitTool,WaitForPageLoadTool,WaitForTextTool - JavaScript:
EvaluateJsTool,ScrollTool,HoverTool,AlertTool - Cookies:
GetCookiesTool,GetCookieTool,AddCookieTool,DeleteCookieTool,DeleteAllCookiesTool - Windows/Tabs:
ListWindowsTool,NewTabTool,NewWindowTool,SwitchWindowTool,CloseWindowTool, etc. - Frames:
SwitchToFrameTool,SwitchToParentFrameTool,SwitchToDefaultContentTool - Advanced:
DragAndDropTool,RightClickTool,FocusTool,ElementStateTool,PressKeyTool, etc.
Structsยง
- AddCookie
Tool - Tool for adding a cookie.
- Alert
Tool - Tool for handling alerts/dialogs.
- Back
Tool - Tool for going back in browser history.
- 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 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.