Skip to main content
Glama

browser_type

Type text into the focused element, or click a target by ref, selector, or X/Y coordinates first, then insert text and optionally clear existing input.

Instructions

Type text into the focused element, or click a target (ref, selector, or x/y) first and then insert text.

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": {
      "text": "<text>"
    },
    "name": "browser_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoViewport X coordinate.
yNoViewport Y coordinate.
refNoRef number from the latest browser_snapshot.
textYesText to insert.
tab_idNoTarget tab id.
selectorNoCSS selector to focus before typing.
clear_firstNoClear existing input value before typing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses the dual mode (type into focus vs. click-a-target-then-insert), but says nothing about precedence when ref, selector, and x/y are supplied together, whether text arrives as keystroke events or a direct value insert (critical for JS-driven inputs), or what happens on failure.

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?

A single front-loaded sentence with zero filler: the primary action comes first and the conditional targeting branch follows. Nothing is repeated or wasted.

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?

Seven parameters, no annotations, and no output schema mean the description must do more than one sentence can. Targeting modes and the focus default are covered, but the ambiguity over multiple simultaneous target params and the semantics of insertion versus simulated keystrokes leaves real gaps for a browser-automation tool.

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 100%, so every parameter is already documented, and the baseline of 3 applies. The description adds only the framing that the target params are alternatives ('ref, selector, or x/y') and that omitting them means the focused element, without clarifying ordering or clear_first behavior.

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 and resource ('Type text into the focused element') and adds the compound behavior of targeting an element first. It implicitly separates itself from browser_click by describing click-then-type versus click-alone, but never names a sibling outright.

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?

The description implies the use case (entering text) and notes the no-target default (focused element), which is genuine guidance. It offers no exclusions or alternatives, so an agent gets no help deciding between this, browser_click followed by separate typing, browser_press for keystrokes, or browser_evaluate for setting values directly.

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