Skip to main content
Glama

browser_type

Types text into a web page input field, locating it by snapshot ref or CSS selector. Optionally clears existing content first and submits by pressing Enter.

Instructions

向输入框输入文字。优先用 ref 定位;可选回车提交

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
refNo快照中的元素编号,如 e5
textYes要输入的内容
clearNo输入前是否清空已有内容,默认 true
submitNo输入后是否按 Enter,默认 false
selectorNoCSS 选择器(与 ref 二选一)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/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 behavioral burden. It discloses only that Enter submission is optional; it says nothing about what happens on failure, whether the element is focused first, whether clearing is destructive, or how the tool handles elements that are not editable – significant gaps for a mutating interaction tool.

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?

Two short sentences, front-loaded with the action and followed by the locating and submission options. No wasted wording, though the terse phrasing leaves little room for the behavioral detail that is missing.

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

Completeness4/5

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

For a five-parameter tool with full schema descriptions and no output schema, the description covers the core action and the key optional behavior. It is nearly complete, with the main omissions being failure modes and focus behavior rather than parameter or return-value documentation.

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 the baseline is 3. The description does add a genuine preference rule (ref over selector) that goes beyond the schema's neutral "与 ref 二选一", but it adds nothing about clear or submit semantics that the schema does not already cover.

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 field), so the agent knows it is a text-entry action rather than a click or key press. It does not differentiate itself from the sibling browser_fill_form, which serves an overlapping purpose, so it falls short of 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?

"优先用 ref 定位" gives real guidance on choosing between the ref and selector parameters, which is useful. However, it says nothing about when to prefer this tool over browser_fill_form or browser_press_key, and gives no preconditions for the element being focusable.

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