Skip to main content
Glama

Type text into element

browser_type

Types text into inputs, textareas, or contenteditable editors, with options to clear existing content and press Enter.

Instructions

Type text into an input, textarea, or contenteditable/ProseMirror editor (compatible with React/Vue controlled inputs), optionally clearing existing text or pressing Enter.

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 ref from browser_snapshot.
textYesText to insert into the element.
clearNoClear existing value/content before typing (default false).
tabIdNoControlled tab id.
selectorNoCSS selector for target input or editor.
pressEnterNoPress Enter after typing (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that — React/Vue controlled-input compatibility and ProseMirror handling, which is exactly the kind of quirk an agent needs. It omits, however, whether typing focuses the element, whether it requires ref or selector, and how failure is surfaced.

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 no filler; the target element types come first and the optional behaviors follow. It is efficient, though the parenthetical framework note interrupts the main clause slightly.

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 six-parameter mutation tool with no output schema, the description covers what is being typed into and the two behavioral flags, but leaves targeting precedence between ref and selector, focus behavior, and failure modes unstated. Adequate but not complete.

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?

With 100% schema description coverage, the schema already documents ref, text, clear, tabId, selector and pressEnter. The description only restates the clear and pressEnter options and adds no extra syntax or format guidance, 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 names a specific verb and resource ('Type text into an input, textarea, or contenteditable/ProseMirror editor') and enumerates the target element kinds, which is far more informative than the title. It stops short of full sibling differentiation: since it accepts pressEnter, an agent could wonder when to use this versus browser_press_key.

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 context is implied by the element-type list and the framework note, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative for the Enter-pressing case. The 'optionally clearing' phrasing describes parameters rather than selection criteria.

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