Skip to main content
Glama

browser_press

Simulate keyboard input by pressing a key or chord on the focused element, such as Enter, Tab, or Control+a; focus a field first using click or fill actions.

Instructions

Press a key or a chord at whatever has focus: "Enter", "Tab", "Escape", "ArrowDown", "Control+a", "Meta+Shift+k". Modifiers go down first and up last, so the page sees one chord and not three unrelated keydowns. Focus a field with browser_click or browser_fill first.

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
keyYesKey or chord, e.g. "Enter" or "Control+a"
timesNoRepeat count (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.5.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses modifier ordering so a chord is dispatched as one combined sequence rather than separate keydowns, but it does not explain behavior when nothing is focused, event trust, timing, or failure modes.

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?

The description is front-loaded with the action and examples, then explains the modifier behavior, then states the focus prerequisite. Every sentence adds practical value with no wasted wording.

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

Completeness4/5

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

For a simple two-parameter browser input tool with no output schema and no annotations, the definition covers the key action, examples, chord behavior, and focus prerequisite. Remaining gaps around error cases and event semantics are minor.

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 coverage is 100%, so the schema already documents both key and times. The description adds useful chord examples but does not materially expand parameter semantics beyond the schema's existing key/chord descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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: press a key or chord at whatever has focus. It provides concrete key and chord examples, making the action immediately distinguishable from browser_click and browser_fill.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a clear prerequisite: focus a field with browser_click or browser_fill first. It does not explicitly describe exclusions or when to prefer browser_fill for entering text, but the usage context is strong.

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