Skip to main content
Glama

Type text

browser_type

Types text key by key into a specified or focused browser element, triggering key handlers and autocomplete for forms and search inputs.

Instructions

Type text key by key (triggers key handlers, autocomplete). Types into the focused element when no target is given.

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
nthNo
refNoElement ref from snapshot (preferred)
nameNo
roleNo
textYesText to type
exactNo
labelNo
expectNoExpectSpec postconditions
pageIdNo
submitNo
testIdNo
withinNoScope to a unique container (ref, role+name, label, testId or CSS selector)
delayMsNo
sessionNo
selectorNoCSS (last resort)
snapshotNoPage state returned after the action: diff (default), full, none
targetTextNoLocate the element by visible text
placeholderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true. The description adds real value beyond them by disclosing that typing fires key handlers and autocomplete, which distinguishes it from direct value insertion, and that an unfocused target defaults to the focused element. However, with 18 parameters it says nothing about submit-on-enter, expect postconditions, delayMs pacing, or snapshot return behavior.

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 distinguishing behavioral trait, with no filler. It is efficiently written, though rather terse relative to the surface area of an 18-parameter tool.

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

Completeness2/5

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

For a high-parameter mutation tool with 39% schema coverage, nested locator objects, and no output schema, the description leaves too much unsaid. Key behaviors like submit, postcondition expectations, typing delays, and what page state is returned are only discoverable by opening the schema.

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

Parameters2/5

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

Schema description coverage is low at 39%, so the description is expected to compensate, but it clarifies only the implicit optional target. Meaningful parameters such as submit, expect, delayMs, snapshot, and the locator fields (name/role/label/testId/nth) receive no explanation beyond 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?

The description names a specific action and mechanism: 'Type text key by key (triggers key handlers, autocomplete).' The 'key by key' detail meaningfully separates it from a value-setting fill action. It does not explicitly name a sibling like browser_fill, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given. The only conditional is a default target behavior ('focused element when no target is given'), which is a behavior note, not selection guidance against browser_fill, browser_press_key, or other siblings.

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