Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_click

Destructive

Clicks a web page element using a snapshot reference or unique selector within an isolated Chrome session, enabling reliable web automation without disrupting other agents.

Instructions

Perform click on a web page

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session": "<session>",
      "target": "<target>"
    },
    "name": "browser_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNoOptional Chrome tab group color override for a newly created session.
buttonNoButton to click, defaults to left
targetYesExact target element reference from the page snapshot, or a unique element selector
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
elementNoHuman-readable element description used to obtain permission to interact with the element
sessionYesRequired isolated session name (also displayed as the Chrome tab group title), e.g. "T1867-api-debug" or "home-css". Use a unique, descriptive task name per conversation so concurrent agents never hijack each other's active tab.
modifiersNoModifier keys to press
doubleClickNoWhether to perform a double click instead of a single click

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the risk profile is covered by structured data. The description adds nothing about what happens on click (navigation, form submission, dialog triggers) or that clicks can mutate page state irreversibly.

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

Conciseness3/5

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

A single, front-loaded sentence with no filler, so it is not verbose. However, its brevity comes from omitting substance rather than from efficient phrasing; it barely earns its place.

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

Completeness2/5

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

This is a destructive, open-world interaction tool with 8 parameters and no output schema. The description gives no guidance on the required snapshot-then-click workflow, session isolation, or permission prompts implied by the element parameter, leaving the agent to piece behavior together from schema fields alone.

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 every parameter (target, element, session, button, modifiers, doubleClick, account, color) is already documented in the schema, including the crucial "exact target element reference from the page snapshot" constraint. The description contributes no additional parameter meaning, which is acceptable given full coverage.

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

Purpose2/5

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

"Perform click on a web page" restates the tool name (browser_click) with only a generic mention of the web-page context. It does not distinguish this tool from siblings like browser_hover, browser_drag, or browser_fill_form beyond the word "click".

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite stated (e.g., that the target reference must come from a browser_snapshot), and no mention of when to prefer double-click via the flag or another interaction tool. An agent must infer the whole workflow.

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