Skip to main content
Glama
yogesh-joshi-0333

browser-control-mcp-server

Browser Click

browser_click

Clicks any web element by CSS selector, waiting for visibility and page stabilization after interaction. Handles buttons, links, menus, checkboxes, and iframes.

Instructions

Click any element on the page by CSS selector — buttons, links, menus, dropdowns, checkboxes, tabs, etc. Examples: "#submit-btn", "button[type=submit]", ".nav-link", "a.login". Waits for the element to be visible, clicks it, then waits for the page to stabilize (handles AJAX, animations, re-renders). Use browser_get_dom first if you need to find the right selector. To click inside an iframe, pass frameIndex from browser_frames (this always uses the simple DOM-click path, since humanClick's mouse simulation only works on the main page). To reach into shadow DOM, prefix the selector with "pierce/" instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoForce a specific mode. Defaults to extension.
selectorYesCSS selector of the element to click. Prefix with "pierce/" to reach into shadow DOM.
sessionIdNoPuppeteer session ID for headless mode. Skips mode selection.
frameIndexNoTarget a specific iframe by index (from browser_frames) instead of the main page.
humanClickNoIf true (default), simulates full human-like mouse event chain: mouseover → mouseenter → mousemove → mousedown → focus → mouseup → click. Required for Select2/jQuery dropdowns, custom widgets, and JS-heavy UIs. Set false for simple links/buttons. Ignored (always simple click) when frameIndex is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the visibility wait, the click, and the post-click stabilization behavior (AJAX, animations, re-renders), plus the non-obvious constraint that iframe clicks always use the simple DOM-click path because mouse simulation only works on the main page. It stops short of describing failure behavior (e.g., what happens if the selector matches nothing or the element never becomes visible).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and examples, then layered constraints (iframes, shadow DOM). Dense but each sentence carries operational information; slightly long, and the parenthetical about humanClick could be tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-annotation, no-output-schema tool, the description covers the mechanism, the timing behavior, and the two main selection edge cases. It is nearly complete; only error/empty-match handling and return confirmation are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all five parameters are already documented in the schema and the baseline is 3. The description restates the 'pierce/' convention and the frameIndex→simple-click interaction, which largely duplicates what the schema already says rather than adding new format or constraint meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource ('Click any element on the page by CSS selector') and enumerates the target element types (buttons, links, menus, dropdowns, checkboxes, tabs). The inline selector examples make it immediately distinguishable from siblings like browser_hover, browser_select_option, or browser_type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: 'Use browser_get_dom first if you need to find the right selector', names browser_frames as the source of frameIndex, and states the shadow-DOM escape hatch ('pierce/' prefix). It also implies when-not via the humanClick/frameIndex tradeoff.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.