Skip to main content
Glama

Type

browser_type

Type text into a browser element with per-character key events to mimic human input; optionally clear existing content, press Enter, or insert long text at once.

Instructions

Types text into a ref element, sending real key events (keydown/keypress/input/keyup) per character like a human. clear=true clears existing content; submit=true presses Enter after. Verifies the resulting value and reports a mismatch. fast=true inserts very long text at once without key events. Date/time inputs get the value set directly in their format (time "19:30", date "2026-10-08"; change event then has isTrusted=false).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYesref of the element to type into
tabNoTarget tab: number (1, 2…) or ID ("t7"). Use the stable ID when agents share a slot. Required for action tools when there are multiple tabs.
fastNoVery long text: insert at once without key events
readNoAppend the page after the action (no separate read needed): text=body text, snapshot=snapshot page 1 (with refs), changes=only lines added/removed since your last snapshot (shortest; full page if the page changed)
slotYesBrowser slot 1-30. "3", "slot 3", "browser 3" → 3. If the user gives a port like 14052, subtract 14049.
textYesText to type
agentNoYour display name, shown to other agents. Subagents must always set it. Default "claude-68d9".
clearNoClear existing content
submitNoPress Enter after
summaryNoOne-line note of what you are doing (e.g. "comparing laptop prices"). Shown in browser_status (not the status line). Omit to keep the previous one.
multiSlotNotrue only when one agent must handle several slots together (e.g. comparing). Normally omit (one agent = one slot; use subagents for the rest)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that real key events are dispatched per character, that the resulting value is verified with mismatch reporting, that fast mode skips key events, and that date/time inputs bypass events entirely with isTrusted=false on the change event. It stops short of covering permissions, failure modes, or what a mismatch report looks like.

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?

A single dense paragraph that front-loads the core behavior and then attaches the flag semantics in order of likely importance. Every clause conveys information; the date/time aside is the only slightly tangential piece and it earns its place by flagging the isTrusted caveat.

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 an 11-parameter mutation tool with no annotations and no output schema, the description covers the action-defining flags and states that the value is verified afterward, which partially substitutes for a missing output schema. It omits the shared session parameters (slot, tab, agent, read, multiSlot), though those are documented in the schema and shared across siblings.

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

Parameters4/5

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

Schema coverage is 100%, so a baseline of 3 applies, but the description adds real meaning beyond the one-line schema entries for clear ('clears existing content'), submit ('presses Enter after'), and fast ('inserts very long text at once without key events'). The remaining parameters (slot, tab, agent, read, summary, multiSlot) get no description-level treatment, which caps this below 5.

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 specific verb and resource ('Types text into a ref element') and goes further by describing the mechanism (real key events per character). However, it never distinguishes itself from the sibling browser_fill, which likely also writes text into an element, leaving the agent to infer the difference.

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 through flag semantics (fast=true for very long text, date/time inputs get direct value setting), but there is no explicit when-to-use guidance or any statement of when to prefer browser_fill, browser_press_key, or browser_select instead. The agent must infer selection criteria.

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