Skip to main content
Glama

browser_type

Types text into a browser input identified by its snapshot ref, clearing the field first. Use it to fill forms reliably when testing pages.

Instructions

Type text into an input from the last snapshot, by its ref. Clears the field first.

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

Input Schema

NameRequiredDescriptionDefault
refYesRef from the last browser_snapshot, e.g. e123
textYesText to type into the field

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely important trait: the field is cleared before typing, so existing content is destroyed. It stays silent on other behavior an agent needs, such as whether keystroke/input events fire, what happens with a stale ref, and whether a submit is triggered.

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?

Two short sentences, both of which carry information, with the most important behavior (clearing the field) called out immediately.

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 two-parameter text-entry tool with no output schema, the essentials are covered, but the definition never explains failure modes (invalid or stale ref) or the event semantics of the typing, which matter for an agent composing multi-step form flows.

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 both parameters are already documented in the schema (ref as "Ref from the last browser_snapshot, e.g. e123", text as "Text to type into the field"). The description adds a little framing about the ref's origin but no format or constraint detail beyond the schema, so baseline 3 applies.

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 gives a specific verb and target ("Type text into an input") plus the scoping condition ("from the last snapshot, by its ref"), which distinguishes it from browser_click and other browser siblings. It does not explicitly name a sibling it should be preferred over, keeping it below a 5.

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: the agent must have taken a browser_snapshot first to have a ref, and that prerequisite is only hinted at. There is no guidance on when to use browser_evaluate or run_playwright_test instead for programmatic form filling.

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