Skip to main content
Glama

browser_sendkeys

Sends keyboard keys or chords (Enter, Tab, Shift+Tab, Control+A, Backspace, arrows) to the focused element in a browser tab, without controlling the Chrome UI.

Instructions

Sends a key or chord to the focused element: Enter, Tab, Shift+Tab, Control+A, Backspace, arrows. Does not control the Chrome UI.

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": {
      "tabId": "<tabId>",
      "keys": "<keys>"
    },
    "name": "browser_sendkeys"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYes
tabIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.4

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses one useful boundary (no Chrome UI control) but says nothing about the focus prerequisite, what happens if no element is focused, whether events are dispatched as trusted key events, or failure behavior.

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?

Two tight sentences, front-loaded with the core action followed by the scope exclusion. Every clause adds information and nothing is padded.

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 two-parameter tool with no annotations and no output schema, the definition covers the main action and key format but leaves the tabId parameter and the focus precondition unaddressed. An agent can call it, but may need trial and error to do so correctly.

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 0%, so the description must compensate. The example key list conveys the chord syntax for 'keys' (e.g., 'Control+A', 'Shift+Tab'), which is genuinely beyond the bare string type, but 'tabId' is never explained in the description or 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?

The description names a specific verb and resource (sends a key or chord to the focused element) and enumerates concrete examples like Enter, Tab, Shift+Tab, Control+A. The 'focused element' target plus the Chrome-UI exclusion helps separate it from text-entry tools like browser_type, 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 implied rather than stated: it is clearly for keyboard input to whatever currently has focus, and 'Does not control the Chrome UI' rules out browser-level shortcuts. There is no explicit when-to-use versus browser_type or browser_fill, and no stated prerequisite that an element must already be focused.

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