Skip to main content
Glama

Type

browser_type

Types text into a browser element using a snapshot ref or CSS selector, and blocks card-like numbers to prevent payment data entry.

Instructions

Type text into an element by snapshot ref or CSS selector. Card-like numbers (13-19 digits) are always refused.

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
refYesSnapshot ref number or CSS selector
textYesText to type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3-alpha.1

TDQS

B3.1/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 helpfully discloses that card-like numbers of 13-19 digits are refused, but it does not explain whether existing text is replaced or appended, whether the element must already be focused, which events are triggered, or how failures surface.

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?

The definition is two front-loaded sentences with no wasted wording. The core action is stated first and the notable refusal constraint follows immediately.

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 simple two-parameter tool with complete schema coverage and no output schema, the description covers the action, locator methods, and one important safety refusal. However, it leaves out usage alternatives and several typing mechanics that matter when no annotations are available.

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 both parameters are already documented structurally. The description repeats that 'ref' identifies the target by snapshot ref or CSS selector and that 'text' is the content to type, but adds no further parameter semantics 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 states a specific verb and resource, 'Type text into an element,' and identifies the two locator methods, snapshot ref or CSS selector. It is clear what the tool does, but it does not explicitly distinguish typing from sibling keyboard tools such as browser_press or browser_click.

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?

There is no explicit when-to-use guidance or routing versus alternatives. The description does not say, for example, to use browser_type for entering text into form fields versus browser_press for key events or browser_click for activating elements.

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