Skip to main content
Glama
yogesh-joshi-0333

browser-control-mcp-server

Browser Keyboard

browser_keyboard

Simulate key presses in the browser to submit forms with Enter, navigate fields with Tab, close modals with Escape, or trigger shortcuts like Ctrl+A and copy/paste.

Instructions

Press keyboard keys like Enter, Tab, Escape, arrow keys, or key combinations with Ctrl/Shift/Alt modifiers. Use to: submit forms (Enter), navigate between fields (Tab), close modals (Escape), select all text (Ctrl+A), copy/paste, or navigate autocomplete menus (ArrowDown/ArrowUp). If selector is provided, focuses that element first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey to press. Examples: "Enter", "Tab", "Escape", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Space", "a", "1", etc.
modeNoForce a specific mode. Defaults to extension.
selectorNoCSS selector to focus before pressing key. If omitted, key is sent to currently focused element.
modifiersNoModifier keys to hold. Examples: ["Control", "a"] for select-all, ["Control", "c"] for copy.
sessionIdNoPuppeteer session ID for headless mode. Skips mode selection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that keys go to the currently focused element unless selector is provided, which is helpful. However, it doesn't mention whether this works across modes (headless/connect/extension), what happens if the element isn't focusable, or any timing/waiting behavior after the keypress.

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?

Three sentences with zero waste: purpose, use cases, and selector behavior. Front-loaded with the core action and key examples. Every sentence earns its place.

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?

Given no annotations and no output schema, the description adequately covers purpose, common use cases, and selector behavior. It could be more complete by mentioning mode implications or error handling, but for a keyboard press tool it covers the essential context an agent needs to call it 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 description coverage is 100%, so the schema already documents all parameters including key, mode, selector, modifiers, and sessionId. The description mentions modifiers (Ctrl/Shift/Alt) and selector behavior, but adds little beyond what the schema provides. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb (press) and resource (keyboard keys), then enumerates concrete scenarios like submitting forms, navigating fields, closing modals, and autocomplete menus. Clearly distinguishable from siblings like browser_type (text input) and browser_click (mouse actions) through its keyboard-focused scope.

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?

Provides clear when-to-use guidance with examples (Enter to submit, Tab to navigate, Escape to close, Ctrl+A to select). It also clarifies behavior when selector is provided vs. omitted. However, it does not explicitly contrast with sibling browser_type or browser_form_fill, which might overlap for text entry scenarios.

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