Skip to main content
Glama

type

Enter text into a browser input field by clearing and filling it in one step, with options for character-by-character typing to trigger keyboard events and pressing Enter to submit.

Instructions

在输入框中输入文字。默认先清空再整体填入(最稳);slowly=true 时逐字输入,适用于依赖键盘事件的输入框(如搜索联想)。submit=true 时输入后按回车。

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": "type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes目标元素的 ref(来自 snapshot,如 e12)
textYes要输入的文字
slowlyNo逐字输入
submitNo输入后按 Enter
elementNo元素的简短描述(仅用于日志,便于人工排查)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

The most valuable disclosure is that the default mode clears the field before filling, which is meaningful destructive behavior beyond the readOnlyHint=false annotation. It also explains the Enter keypress when submit=true. However, it says nothing about failure behavior when the ref is stale or the element is not editable, which matters for an openWorldHint tool.

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?

Three compact clauses that front-load the core action, then the default behavior, then the two opt-in flags. Every phrase carries information; no filler or restatement of the tool name.

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 mutation tool with no output schema, the description covers the action, the default mutation semantics, and both opt-in flags, which is enough to call it correctly. The remaining gap is error/edge-case behavior, minor given the fully documented schema.

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 coverage is 100%, so the schema already documents all five parameters, establishing a baseline of 3. The description extends the meaning of slowly beyond the schema's bare '逐字输入' by tying it to keyboard-event-dependent inputs, and explains the default clearing behavior, but ref and element are left entirely to 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?

States a concrete verb+resource: entering text into an input box, and the scope of the three modes. It is clearly distinct from siblings like press_key or click, though it never names a sibling to reinforce the contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives actionable selection guidance: the default clear-then-fill is flagged as the most stable, and slowly=true is recommended specifically for inputs that depend on keyboard events such as search suggestions. It does not state when NOT to use the tool or how it relates to press_key for form submission.

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