Skip to main content
Glama

Type Text into Input

gpm_browser_type

Fills input and textarea fields by selector, optionally clearing old text, typing with human-like delays, and pressing Enter after entry.

Instructions

Điền văn bản vào ô input/textarea. Nếu đặt delay_ms > 0 sẽ gõ từng phím tự nhiên giống người thật.

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": {
      "selector": "<selector>",
      "text": "<text>"
    },
    "name": "gpm_browser_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesNội dung cần nhập
clearNoXoá nội dung cũ trước khi nhập (mặc định true)
delay_msNoĐộ trễ giữa các phím tính bằng ms (0 = fill ngay, >0 = gõ từng ký tự)
selectorYesCSS hoặc Playwright selector của ô nhập
profile_idNoID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối)
timeout_msNoTimeout mili-giây (mặc định 15000)
press_enterNoNhấn Enter sau khi nhập xong

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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the two modes (instant fill vs. per-character typing) and that typing is meant to look human, which is useful context beyond the schema. It omits failure behavior, whether the element is focused or scrolled into view, and the requirement that a GPM profile be connected over CDP.

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 core action, with no filler. The second sentence largely restates the delay_ms semantics already in the schema, which is minor redundancy rather than bloat.

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 7-parameter browser-automation tool with no annotations and no output schema, the description plus a fully documented schema covers enough to call it correctly. It does not explain what the call returns or how it behaves on a missing selector, leaving a modest gap.

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 all seven parameters (selector, text, clear, delay_ms, press_enter, profile_id, timeout_ms) are already documented in the schema. The description only echoes text and delay_ms, adding no format, default, or interaction detail beyond it, so the 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 states a specific verb and resource ('Điền văn bản vào ô input/textarea'), so an agent knows it writes text into form fields. It does not explicitly contrast itself with siblings like gpm_browser_press or gpm_browser_select, but the resource is narrow enough to be unambiguous.

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 only implied by the resource ('input/textarea'); there is no statement of when to prefer this over gpm_browser_press (key presses) or gpm_browser_select (dropdowns). The one piece of guidance offered is the delay_ms > 0 trade-off, which hints at human-like typing versus instant fill.

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