Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:ANative Lab EvoAgentX BrowserToolkit

From Leeroopedia
Knowledge Sources
Domains Tools, Web_Automation
Last Updated 2026-10-21 00:00 GMT

Overview

Concrete tool for Selenium-based browser automation enabling agents to navigate, click, type, and extract content from web pages.

Description

The BrowserToolkit wraps Selenium WebDriver for web interaction. It provides navigation, clicking, typing, scrolling, element finding with wait conditions, screenshots, and page content extraction. Extensive element interaction capabilities make it one of the most comprehensive built-in tools for web automation in the EvoAgentX framework.

Usage

  • Web automation: Attach to `CustomizeAgent` for agents that interact with web pages.
  • Form filling: Use typing and clicking tools to automate form submission.
  • Content extraction: Extract text and HTML from web pages for analysis.

Code Reference

Source Location

Signature

class BrowserToolkit(Toolkit):
    def __init__(self, ...):
        # Wraps Selenium WebDriver
        # Tools: navigate, click, type, scroll, find_element, screenshot, extract_content
        ...

Import

from evoagentx.tools.browser_tool import BrowserToolkit

I/O Contract

Inputs

Name Type Required Description
url str Yes (navigate) URL to navigate to
selector str Yes (click/type) CSS or XPath selector for element
text str Yes (type) Text to type into element

Outputs

Name Type Description
navigate returns str Page title and content summary
screenshot returns str Path to saved screenshot file
extract_content returns str Extracted page text content

Usage Examples

Agent with Browser Tools

from evoagentx.tools.browser_tool import BrowserToolkit
from evoagentx.agents.customize_agent import CustomizeAgent
from evoagentx.models.model_configs import OpenAILLMConfig

agent = CustomizeAgent(
    name="WebAgent",
    description="Browse and extract web content",
    prompt="Navigate to {url} and extract the main content.",
    llm_config=OpenAILLMConfig(model="gpt-4o-mini", openai_key="sk-..."),
    inputs=[{"name": "url", "type": "str", "description": "URL to browse"}],
    outputs=[{"name": "content", "type": "str", "description": "Extracted content"}],
    parse_mode="title",
    tools=[BrowserToolkit()],
)

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment