Skip to main content
Glama

browser_press_key

Simulates pressing a single keyboard key on the page, such as Enter, Escape, Tab, or ArrowDown, to trigger shortcuts, submit forms, or navigate elements during browser automation.

Instructions

Tekan satu tombol keyboard di halaman, contoh: Enter, Escape, Tab, ArrowDown, Control+A.

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
keyYesNama tombol Playwright

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 carries the full behavioral burden. It reveals almost nothing beyond the action: it does not say keys are dispatched to the currently focused element, whether the keypress triggers page handlers, whether it waits for effects, or what happens on failure. The only real context is the example key set, including a modifier combo, which hints at Playwright key syntax but is not stated as a rule.

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?

One short sentence, action first, examples second; every element earns its place and there is no filler or redundancy.

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 tool with no annotations and no output schema, the description covers the action and the argument format adequately. What it omits is the interaction model that matters most for a keypress tool: which element receives the key, and whether focus must be established by a prior call.

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 100% and the single parameter is documented as 'Nama tombol Playwright', so the baseline is 3. The description earns above baseline by giving four concrete key names plus a combined modifier example ('Control+A'), which materially clarifies the expected string format beyond the schema's bare phrase.

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 states a specific verb and resource ('Tekan satu tombol keyboard di halaman') and lists concrete examples (Enter, Escape, Tab, ArrowDown, Control+A). It clearly conveys pressing a single key on the page, but it does not distinguish this from siblings like browser_type or browser_click, so an agent must infer the boundary itself.

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 the examples (navigation keys, modifier combos like Control+A), which suggests when this is preferable to typing text. However, there is no explicit 'use this when…' guidance, no exclusion such as 'use browser_type to enter text', and no mention of the preconditions (an element must be focused) that determine whether the call will succeed.

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