Skip to main content
Glama

browser_press_key

Press a key or keyboard chord in a Playwright browser, such as Enter or Control+A, and receive delivery status with retry handling.

Instructions

Press a key or chord, e.g. 'Enter' or 'Control+A'. Reports delivery and retry.

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_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.6
    • addedInput schema / required
      Added value: +[
      +  "key"
      +]
  2. First observedv0.1.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, and openWorld=true, so the safety profile is covered. The description adds that it reports delivery and performs retries, which is genuine behavioral context beyond the annotations, but it leaves the retry count, failure semantics, and result shape unspecified.

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?

Two short sentences with the core action front-loaded and no filler. 'Reports delivery and retry' is compressed to the point of mild ambiguity, but it earns its place as the only behavioral disclosure.

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 one-parameter action tool with annotations and no output schema, the definition is workable but thin. It omits focus/precondition requirements and the concrete form of the 'delivery' report, which leaves an agent guessing about failure handling.

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?

The single 'key' parameter has 0% schema description coverage, so the description must carry the load. It does partly by showing that both single keys and '+'-joined chords are accepted, which is meaning the schema does not provide, but it says nothing about supported key names, modifiers, or case sensitivity.

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 key or chord') and gives concrete example inputs ('Enter', 'Control+A') that make the operation unambiguous. The 'browser_' prefix in the name plus the press action separates it from browser_type and browser_fill, though it never explicitly distinguishes itself from the sibling mac_key/phone_key variants.

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?

No guidance on when to prefer this over browser_type, browser_fill, or mac_key, nor any note about focus requirements before pressing. The only hint is 'reports delivery and retry', which suggests a robustness profile but is not a when-to-use statement.

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