Skip to main content
Glama

browser_type

Types text character by character as real key events into a specified element or focused field, optionally pressing Enter to submit. Use it to fill forms and trigger keyboard-driven interactions.

Instructions

Type text key by key into the element (or the focused one), as real key events.

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

Input Schema

NameRequiredDescriptionDefault
refNoref from browser_snapshot
textNoVisible text/label, instead of ref
stateNotrue: full page state
valueYesText to type
submitNoPress Enter after typing
selectorNoCSS selector, instead of ref
snapshotNoSnapshot after the action

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.9.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / ref / description
      Previous value: -"Element ref from browser_snapshot, e.g. 12"New value: +"ref from browser_snapshot"
    • changedInput schema / properties / selector / description
      Previous value: -"CSS selector (first match), instead of ref"New value: +"CSS selector, instead of ref"
    • changedInput schema / properties / snapshot / description
      Previous value: -"Also return the page snapshot after the action"New value: +"Snapshot after the action"
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "true: full page state",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Visible text or label of the element, instead of ref"New value: +"Visible text/label, instead of ref"
    • changedInput schema / properties / value / description
      Previous value: -"The text to type"New value: +"Text to type"
  2. First observedv0.7.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that input is simulated character-by-character as real key events (a genuine behavioral trait that affects event handlers), but says nothing about whether existing content is cleared or appended, what happens on missing/disabled elements, or error 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 tight sentence with no filler; the key behavioral qualifier ('key by key, as real key events') is front-loaded rather than buried. Slightly terse on the element-resolution ambiguity, but nothing is 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?

For a seven-parameter interaction tool with no annotations and no output schema, the description covers the core action but not the surrounding behavior an agent needs: whether typing clears prior content, how ref/text/selector precedence works, and what the snapshot/state flags yield. The rich schema compensates for parameter coverage, but the missing behavioral context keeps this at a minimum-viable level.

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 all seven parameters (ref, text, state, value, submit, selector, snapshot) are already documented. The description only reinforces the optional-target idea via '(or the focused one)' and adds no format, precedence, or interaction detail beyond the schema.

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?

Names a specific verb and target ('Type text key by key into the element (or the focused one)') and adds a distinguishing behavioral detail ('as real key events'). It does not explicitly contrast itself with the sibling browser_fill, so an agent must infer that fill sets a value differently, but the core action is unambiguous.

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?

Usage is implied rather than stated: 'as real key events' hints this is for triggering key handlers that a direct value-set would miss, but the description never says when to prefer this over browser_fill or browser_press_key, and gives no exclusions or prerequisites.

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