Skip to main content
Glama

browser_right_click

Right-click elements via CSS or text selectors using trusted CDP mouse events to open in-page context menus and detect blocked targets before input is sent.

Instructions

Right-click an element (trusted CDP mouse events) to open page-level context menus (web apps like OWA/Google Docs render their own). Note: Chrome's NATIVE context menu does not open via CDP - only in-page menus. If the mouse would not reach the target at its center - another element lies in front of it (an overlay, a dialog's backdrop), or the target does not take clicks there (pointer-events, visibility, clipping) - the answer is ok:false with error "covered" and covered_by. Found before the mouse is sent, nothing is sent; if it comes in front afterwards, the rest of the presses and clicks are stopped (a release the page moves elsewhere is let through), and the answer also has maybe_landed: true, because the page may already have reacted.

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": {
      "selector": "<selector>"
    },
    "name": "browser_right_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYesCSS or text selector
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. Addedv1.28.0

TDQS

A4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: trusted CDP events, the native-menu limitation, pre-flight occlusion detection that prevents any mouse being sent, the ok:false/'covered'/covered_by failure shape, and mid-sequence abort semantics with maybe_landed to signal the page may already have reacted.

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?

The description is front-loaded with purpose before failure semantics, and nearly every sentence carries operational value. It loses a point for the final sentence, a dense run-on string of parenthetical clauses that could be broken up for readability.

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?

No output schema or annotations exist, and the description compensates well by documenting failure fields and mid-call state. What remains uncovered is the success return shape and any detail on the partition parameter, minor gaps for a two-parameter tool.

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

Parameters4/5

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

Schema coverage is 100% and both parameters (selector, partition) are documented in the schema, so the baseline is 3. The description reinforces the selector target semantics ('at its center', pointer-events/visibility/clipping considerations) which adds modest meaning beyond the schema, though partition behavior is left entirely to the schema.

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

Purpose4/5

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

The description opens with a concrete verb+resource ('Right-click an element') and immediately clarifies the distinguishing behavioral trait: it opens page-level context menus via trusted CDP events, not Chrome's native menu. The purpose is unmistakable, though it never names siblings such as browser_click to route the agent explicitly.

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

Usage Guidelines3/5

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

It gives context for when this is appropriate (web apps like OWA/Google Docs that render their own menus) and implicitly rules out native-menu use via the CDP note. However, there is no explicit when-to-use vs browser_click/browser_click_xy guidance and no workflow hint (e.g., follow with browser_click to select a menu item).

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