Skip to main content
Glama

chrome_key_press

Simulates keyboard input in a running Chrome tab by pressing a key or key combination such as Enter, Tab, Escape, or Ctrl+A for browser automation and testing.

Instructions

Press a key or key combination (Enter, Tab, Escape, Ctrl+A, etc.)

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": "chrome_key_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey name: Enter, Tab, Escape, Backspace, ArrowDown, etc.
tabIdNo
modifiersNoModifier flags: 1=Alt, 2=Ctrl, 4=Meta/Cmd, 8=Shift. Sum for combos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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, yet it says nothing about where the keystroke is dispatched (focused element vs. page), whether it waits for the action to settle, or what happens on failure. For an input-simulation tool this leaves significant gaps.

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?

A single compact sentence with the core action front-loaded and the parenthetical examples earning their space by clarifying supported key syntax. No filler.

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

Completeness2/5

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

With no annotations and no output schema, the description should explain focus/targeting behavior and the result of the key press; instead it stops at example key names, leaving an agent uncertain about preconditions and return values.

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 67%, with 'key' and 'modifiers' already documented in the schema, including the flag-sum encoding. The description adds only the Ctrl+A combination example and says nothing about the undocumented 'tabId' parameter, so it barely exceeds the schema.

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?

Names a specific verb and resource ('Press a key or key combination') and backs it with concrete examples (Enter, Tab, Escape, Ctrl+A). An agent can distinguish it from mouse-oriented siblings like chrome_click, though no sibling is named explicitly.

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 only implied: the examples suggest page-level keyboard input, but there is no statement of when to prefer this over chrome_click, chrome_handle_dialog, or chrome_find_elements, and no prerequisites such as whether an element must be focused first.

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