Skip to main content
Glama

browser_click

Automate clicking on web page elements using selectors with a Chrome browser tool designed to bypass anti-bot detection for scraping, testing, and automation tasks.

Instructions

Click an element on the page

Args: selector: The selector of the element to click - required

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes

Implementation Reference

  • Main handler and registration for browser_click tool using @mcp.tool(). Executes Selenium click on element selected by CSS selector after ensuring browser instance.
    @mcp.tool() async def browser_click( selector: str, ): """Click an element on the page Args: selector: The selector of the element to click - required """ assert selector, "Selector is required" async def click_handler(driver: uc.Chrome): driver.find_element(By.CSS_SELECTOR, selector).click() return await create_success_response(f"Clicked element: {selector}") return await tool.safe_execute( ToolContext(webdriver=await ensure_browser()), click_handler )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dragons96/mcp-undetected-chromedriver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server