Skip to main content
Glama
1password-browser-mcp

1password-browser-mcp

Press key

browser_press_key

Presses a key or chord—such as Enter, Tab, Escape, Control+a, or ArrowDown—on the focused element or a specified target to trigger browser interactions.

Instructions

Press a key or chord (e.g. "Enter", "Tab", "Escape", "Control+a", "ArrowDown") on the focused element or on a target.

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
refNoElement ref from browser_snapshot, e.g. "e12"
selectorNoPlaywright selector (CSS, text=..., role=..., xpath=...) used when no ref is given
snapshotNoReturn an accessibility snapshot of the page after the action (default from BROWSER_MCP_SNAPSHOT_AFTER_ACTIONS)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full disclosure burden. It states the targeting model but says nothing about failure behavior (e.g. what happens if no element is focused), whether keys are dispatched as real input events, or how the action interacts with the snapshot option.

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

Conciseness5/5

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

A single front-loaded sentence with the chord examples grouped parenthetically, and the targeting clause at the end. No redundant or filler text.

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 four-parameter interaction tool with no annotations and no output schema, the definition covers the key semantics and target model adequately. It leaves out return/error behavior and the relationship to text-entry siblings, which an agent would still have to discover.

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 75%, with ref, selector, and snapshot already documented. The description adds genuine value the schema lacks: the accepted key/chord syntax ("Enter", "Control+a", "ArrowDown"), which the bare {"type":"string"} for key does not convey.

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 has a specific verb ("Press") and resource ("a key or chord") and lists concrete examples including modifier chords ("Control+a") and named keys, which make the operation unambiguous. It stops short of distinguishing itself from sibling browser_type, which is the nearest ambiguity an agent would face.

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?

Usage is implied by "on the focused element or on a target," which tells the agent it can act without a target or with one. There is no explicit when-to-use versus browser_type or browser_fill_form, and no guidance on when to prefer ref over selector.

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