Skip to main content
Glama
Browser MCP Server

Browser MCP Server

click_in_frame

Clicks an element inside an iframe or frame using a selector, enabling interaction with embedded content that is inaccessible from the main page.

Instructions

Click an element inside a frame/iframe.

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": "click_in_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
frameUrlNo
selectorYes
frameNameNo
frameIndexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the entire behavioral burden and does almost none of it. It does not say what happens if the frame cannot be located or the selector matches nothing, whether the call waits for the element, or whether the click scrolls into view — all relevant for a mutating UI action.

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?

The sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than disciplined economy. There is room for the frame-resolution and failure behavior that the definition currently omits.

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

Completeness3/5

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

For a five-parameter interaction tool with no annotations and no output schema, this is thin.

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

Parameters2/5

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

Schema coverage is 0% across five parameters, and the description adds no meaning: it never explains 'pageId', the precedence between 'frameUrl', 'frameName', and 'frameIndex', or what 'selector' syntax is expected. Only the loose mapping of 'element' to selector and 'frame' to the frame-identifying params can be inferred.

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 states a specific verb and resource ('Click an element') plus a scoping constraint ('inside a frame/iframe'), which distinguishes it from the sibling 'click' and 'click_element' tools that presumably act on the top-level document. It is a single clean sentence, though it doesn't name the alternatives explicitly.

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 guidance on when to use this instead of 'click', 'click_element', or 'execute_in_frame', nor any prerequisites such as the frame needing to be loaded or cross-origin restrictions. The agent must infer the applicability from the phrase 'inside a frame/iframe' alone.

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