Skip to main content
Glama

输入文本

browser_type
Destructive

Types text into a specified textbox or contenteditable element by ref, optionally clearing it first and pressing Enter to submit searches or forms.

Instructions

Type text into a textbox/contenteditable by ref. Use submit:true to press Enter after typing (e.g. submit a search box). Use clear:true to empty 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
refYesElement ref of the textbox
textYesText to type
clearNoClear the field before typing (default false)
tabIdNoTab id (default: active tab)
submitNoPress Enter after typing (default false)
snapshotNoReturn an incremental snapshot after the action (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered structurally. The description adds mechanism detail — that clear:true wipes existing content and submit:true triggers Enter (potentially submitting a form or navigating) — but most of this echoes the schema's own parameter text, and it never warns that clearing is irreversible or what happens if the ref is stale.

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?

Three short sentences, front-loaded with the core action and followed by the two option flags — no filler. Minor redundancy with the schema's parameter descriptions (clear/submit defaults) costs it the top score.

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 the two behaviorally interesting flags but is silent on the snapshot return behavior, on whether typing triggers input/change events, and on how refs are obtained (e.g. via browser_find or browser_get_selector). Adequate but with clear gaps for an agent composing a browser automation sequence.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns an increment by pairing submit with a concrete scenario ("e.g. submit a search box") that clarifies intent beyond the schema's terse "Press Enter after typing". It says nothing extra about tabId or snapshot, but the schema already documents those adequately.

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?

"Type text into a textbox/contenteditable by ref" gives a specific verb and target, and narrows scope beyond generic input by naming the element types. It does not distinguish itself from near neighbors like browser_fill_form or browser_press_key, so an agent must infer the boundary from sibling names alone.

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 explains how to use two flags (submit:true for Enter, clear:true to empty first) with a concrete search-box example, which is genuine usage help. It gives no when-to-use/when-not guidance relative to alternatives such as browser_fill_form for multi-field entry or browser_press_key for standalone keystrokes.

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