Skip to main content
Glama

Press key

browser_press_key

Press keyboard keys or combos such as Enter, Tab, Escape, or Control+A on the focused element to trigger actions, navigate forms, or send shortcuts in browser automation.

Instructions

Presses a key on the focused element. E.g. Enter, Tab, Escape, ArrowDown, PageDown, Control+A, Shift+Tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey name or combo (e.g. "Control+A")
tabNoTarget tab: number (1, 2…) or ID ("t7"). Use the stable ID when agents share a slot. Required for action tools when there are multiple tabs.
readNoAppend the page after the action (no separate read needed): text=body text, snapshot=snapshot page 1 (with refs), changes=only lines added/removed since your last snapshot (shortest; full page if the page changed)
slotYesBrowser slot 1-30. "3", "slot 3", "browser 3" → 3. If the user gives a port like 14052, subtract 14049.
agentNoYour display name, shown to other agents. Subagents must always set it. Default "claude-68d9".
summaryNoOne-line note of what you are doing (e.g. "comparing laptop prices"). Shown in browser_status (not the status line). Omit to keep the previous one.
multiSlotNotrue only when one agent must handle several slots together (e.g. comparing). Normally omit (one agent = one slot; use subagents for the rest)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that the key goes to the focused element, but says nothing about side effects (form submission, navigation triggers), focus requirements, or failure modes when no element is focused — a meaningful gap for a browser-mutating tool.

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?

Two short sentences, front-loaded with the action and followed by examples. Every element earns its place, though the example list is somewhat long relative to the small amount of substantive information conveyed.

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 7-parameter tool in a busy multi-slot browser ecosystem with no output schema and no annotations, the description covers only the core action. Slot/tab targeting, the read-after-action behavior, and multi-slot coordination are left entirely to the schema, which is adequate but leaves behavioral context thin.

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 per the baseline this is a 3. The description's key examples largely duplicate what the schema's key field already documents ("Control+A"), adding little beyond the structured fields.

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?

States a specific verb+resource (press a key on the focused element) and gives concrete key examples like Enter, Control+A, Shift+Tab, which distinguishes it from text-entry siblings such as browser_type or browser_fill. It does not, however, explicitly name those siblings or state what makes it different.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no comparison to browser_type/browser_fill, and no statement of prerequisites such as the element needing focus or a tab being active. The examples imply keyboard interaction but don't route the agent among alternatives.

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