Skip to main content
Glama

Type text

browser_type

Type text into any input or textarea on a live web page by targeting elements via CSS selector, accessibility role, or snapshot ref, with options to clear, append, and submit.

Instructions

Types text into an input or textarea. Address the element by ref (from the latest browser_snapshot), or by css, or by role+name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssNoCSS selector, as an alternative to ref.
refNoElement ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them.
nameNoAccessible name to match alongside role.
roleNoARIA role, e.g. "button". Combine with name for an accessible-name match.
textYesText to enter.
clearNoReplace existing content (default true). False appends keystroke by keystroke.
indexNoWhich match to use when the selector is ambiguous (0-based, default 0).
submitNoPress Enter afterwards.
sessionIdYesSession id returned by browser_start.
Behavior3/5

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

Annotations already indicate this is a mutating operation (readOnlyHint=false). The description adds useful behavioral details about the 'clear' flag (replacing content) and 'submit' (pressing Enter), which go beyond the annotations. However, it doesn't disclose potential side effects like triggering input events or page navigation.

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 description consists of two tightly written sentences with zero filler. The core action is front-loaded, and the addressing options are listed concisely without redundancy.

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 tool with 9 parameters and no output schema, the description covers the essential purpose and addressing strategies. It omits error handling or return values, but those are not critical given the full parameter documentation in the 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 every parameter is already documented. The description reiterates the addressing modes (ref, css, role+name) but adds no new meaning beyond the schema. This aligns with the baseline of 3.

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 clearly states the tool types text into inputs/textareas and lists three addressing methods (ref, css, role+name). While it doesn't explicitly contrast with siblings like browser_press_key, the specific verb and resource make the purpose 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 implied: use when you need to fill in a text field. However, there is no explicit guidance on when to prefer this over browser_press_key or other input tools, nor any mention of when not to use it (e.g., for non-editable elements).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hofmeister/web-ui-tester'

If you have feedback or need assistance with the MCP directory API, please join our Discord server