Skip to main content
Glama

browser_type

Types text into a browser input field using a snapshot reference, element index, or CSS selector, with an option to replace or append existing content.

Instructions

Type text into an input field by snapshot ref, element index or CSS selector.

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
refNoElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
textYesThe text to type into the field.
clearNotrue replaces the field content, false appends to it (default: replace).
indexNoThe numeric index of the input element from the snapshot (mapped to ref "@e<index>").
tabIdNoOptional browser tab id to act on instead of the focused tab.
selectorNoAlternative CSS selector of the input element.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses almost nothing: it does not say whether typing requires the element to be focused first, whether it fires keystroke/input/change events, whether it can submit forms, what happens on a selector miss, or what is returned. Only the presence of a 'tabId' in the schema hints at multi-tab behavior.

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?

A single front-loaded sentence with zero filler, and the targeting options are placed where an agent will read them first. It is efficient rather than padded, though brevity here edges toward under-specification.

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

Completeness2/5

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

For a 6-parameter mutation-style interaction tool with no annotations and no output schema, the definition says far too little: default behavior (clear defaults to replace), precedence between ref/index/selector, failure modes, and result shape are all undocumented in prose. The rich schema partially compensates, but not enough for a tool that drives a live browser.

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 baseline is 3. The description restates the three targeting parameters already documented in the schema (including the ref-over-index preference and clear's replace/append behavior) but adds no semantics beyond it.

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 uses a specific verb+resource pair ('Type text into an input field') and names the three targeting mechanisms (snapshot ref, element index, CSS selector). It is clear enough to distinguish from browser_press (key presses) or browser_select_option (dropdowns), though it never states those differences explicitly.

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 / when-not-to-use guidance and no named alternatives. An agent gets no help deciding between browser_type, browser_press, browser_eval (setting values via script), or browser_select_option when a field is a combobox.

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