Skip to main content
Glama

browser_press

Presses a keyboard key on a webpage to trigger form submission, focus movement, or navigation, with optional element targeting, tab selection, and key modifiers.

Instructions

Press a keyboard key on a webpage (e.g. "Enter", "Tab", "Escape", "ArrowDown", "Backspace").

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": {
      "key": "<key>"
    },
    "name": "browser_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe key to press (e.g. "Enter", "Tab", "Escape").
refNoElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdNoOptional browser tab id to act on instead of the focused tab.
modifiersNoOptional key modifiers, e.g. "Control+Shift".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden but discloses nothing about side effects beyond the keystroke itself — e.g. that Enter may submit a form, that focus state or the target element via ref matters, or how the focused tab interacts with tabId. It is a bare action statement rather than a behavioral contract.

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?

A single front-loaded sentence with no filler and a helpful set of example keys. It is efficient, though the brevity borders on under-specification given the tool's targeting options.

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?

The tool is simple and the full input schema plus key examples cover the mechanics, and no output schema exists to explain. However, absent annotations, an agent is left without guidance on focus requirements, side effects, or snapshot dependency, so completeness is only adequate.

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 key, ref, tabId, and modifiers are all documented in the schema, including that ref is preferred over index and can target a scroll container. The description adds no meaning beyond that, which earns the baseline 3 rather than more.

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?

States a specific verb and resource ("Press a keyboard key on a webpage") and enumerates representative keys, so an agent knows exactly what action is performed. It does not distinguish itself from siblings such as browser_type, which also emits keystrokes, so it falls short of a 5.

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 or when-not-to-use guidance, and no mention of the common alternative browser_type for entering text versus a single discrete key press. It also omits the practical prerequisite that a ref usually comes from browser_snapshot, leaving routing between key press and typing to inference.

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