Skip to main content
Glama
t3ratech

T3rnel Browser — Session Bridge

Official
by t3ratech

session_press

Destructive

Press a single keyboard key on the focused element or a named selector to submit forms, dismiss dialogs, or navigate suggestion lists. Returns the pressed key for confirmation.

Instructions

Press a single keyboard key on the focused element, or on a named element after focusing it. Use it to submit a form with Enter, dismiss a dialog with Escape, or walk a suggestion list with ArrowDown. Returns {pressed} naming the key. Supported keys are Enter, Tab, Escape, Backspace, Delete, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Home, End, PageUp, PageDown and Space; anything else fails with the supported list rather than doing nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesOne of Enter, Tab, Escape, Backspace, Delete, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Home, End, PageUp, PageDown, Space
refNoA ref from session_snapshot, such as @e12, used instead of selector
tabIdNoTab to act on; uses the active tab when omitted
selectorNoCSS selector for the element to press the key on; uses the focused element when omitted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.2.0
    • addedInput schema / properties / key / description
      Added value: +"One of Enter, Tab, Escape, Backspace, Delete, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Home, End, PageUp, PageDown, Space"
    • addedInput schema / properties / ref / examples
      Added value: +[
      +  "@e12"
      +]
    • addedInput schema / properties / ref / pattern
      Added value: +"^@?e\\d+$"
    • addedInput schema / properties / selector / description
      Added value: +"CSS selector for the element to press the key on; uses the focused element when omitted"
    • addedInput schema / properties / tabId / description
      Added value: +"Tab to act on; uses the active tab when omitted"
  2. First observedv1.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true), the description adds valuable behavioral details: it returns '{pressed}' naming the key, and it discloses the exact error behavior ('anything else fails with the supported list rather than doing nothing'). It also explains the focusing behavior ('or on a named element after focusing it'), which is not evident from the schema alone. No contradiction with annotations exists.

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?

The description is compact and front-loaded with the core action, followed by purpose examples, return value, and supported keys/error behavior. Each sentence serves a distinct function with no filler. The structure quickly informs an agent what the tool does, when to use it, and what to expect.

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

Completeness5/5

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

For a tool with four parameters, one required, no output schema, and annotations already providing safety semantics, the description covers the essential behavioral context: focus targeting, return value, supported keys, and failure mode. The schema covers parameter details and tab/selector behavior, so nothing critical is missing for correct invocation.

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 four parameters. The description reinforces the meaning of the key parameter by listing supported keys and clarifies the selector/ref use case ('on a named element after focusing it'), but it does not add substantial detail beyond the schema. Baseline 3 is appropriate because the schema carries the semantic weight.

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?

The description uses a specific verb and resource: 'Press a single keyboard key on the focused element, or on a named element after focusing it.' It clearly identifies the tool as a key-press operation and distinguishes it from sibling tools like session_click and session_type by its focus on keyboard keys. The concrete use cases (submit form with Enter, dismiss dialog with Escape, walk suggestion list with ArrowDown) reinforce the tool's unique purpose.

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?

The description provides explicit use cases: 'Use it to submit a form with Enter, dismiss a dialog with Escape, or walk a suggestion list with ArrowDown.' This gives clear context for when the tool is appropriate, though it does not explicitly mention when not to use it or name alternative tools. Because the examples imply the alternative (typing full text with session_type, clicking with session_click), the guidance is strong but not exhaustive.

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