Skip to main content
Glama

Press a key

browser_key
Destructive

Simulate key presses like Enter or Escape on a control to trigger keyboard shortcuts in shared Firefox tabs.

Instructions

Dispatch a synthetic keyboard event (keydown/keyup) on a control. Default browser behaviour is not guaranteed. Same credential restrictions as browser_fill.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey name such as Enter, Escape, ArrowDown or a single character.
refYesShort ref such as e3 from that snapshot.
context_idYesContext id from browser_contexts, for example tab:12.
request_idNoStable id for this logical action. Reuse the SAME id to retry or reconcile it; never reuse it for a different action. Omit to have one generated and returned.
observation_idYesobservation_id from the browser_snapshot that produced ref.
browser_instance_idNoOnly needed when several Firefox profiles are connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false and openWorld=true, so the safety profile is covered. The description earns credit for the genuinely non-obvious caveat that the event is synthetic and default browser behaviour is not guaranteed, which warns the agent that keystrokes may not trigger native form or navigation behaviour.

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?

Three short sentences, front-loaded with the core action and the important caveat. No padding; the credential cross-reference is the only sentence that could be considered optional overhead.

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?

Annotations cover safety, so the description does not need to restate destructiveness, and there is no output schema to explain. However, for a mutation tool it never clarifies why an operation is destructive (e.g. a key may submit a form) nor what the call returns, leaving a modest gap.

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 all six parameters including ref, key and request_id are already documented in the schema. The description adds no syntax, format or default information beyond it, so the baseline 3 applies.

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: dispatching a synthetic keydown/keyup event on a control identified by a ref. This distinguishes it reasonably from browser_click and browser_type, though it never explicitly contrasts itself with browser_type, the closest sibling.

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 when-to-use guidance and no comparison to browser_type or browser_click, which are the obvious alternatives for keyboard-driven interaction. The only usage-adjacent signal is the pointer to browser_fill's credential restrictions, which implies a prerequisite rather than routing the agent.

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