Skip to main content
Glama

type

Enter text into a specified input field by ref or CSS selector, with optional clearing before entry. Supports stable element selection for reliable browser automation.

Instructions

Type text into an input identified by ref or CSS selector. For 2+ fields use fill_form; for special keys (Enter, Escape, Tab, arrows) or shortcuts (Ctrl+K) use press_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoElement ref (preferred)
textYesText to type
clearNoClear the field first
selectorNoCSS selector (fallback)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed6 schema fields changedv2.10.5
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / clear / description
      Previous value: -"Clear existing field content before typing (default: false)"New value: +"Clear the field first"
    • changedInput schema / properties / ref / description
      Previous value: -"Element reference from view_page (e.g. 'e12') — preferred over selector"New value: +"Element ref (preferred)"
    • changedInput schema / properties / selector / description
      Previous value: -"CSS selector as fallback (e.g. 'input[name=email]')"New value: +"CSS selector (fallback)"
    • changedInput schema / properties / text / description
      Previous value: -"Text to type into the element"New value: +"Text to type"
  2. First observedv2.7.0

TDQS

A3.8/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only states the action and target mechanism. It does not disclose whether the field is focused or clicked first, whether text overwrites existing content or appends to the cursor position, what happens when neither ref nor selector is provided, or how multiple matching selectors are handled.

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 is two sentences with no wasted words. The core action is front-loaded, and the sibling-routing guidance is compact and immediately actionable.

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?

Despite a complete schema, this is a mutation-oriented tool with no annotations and no output schema. The description leaves important operational gaps undefined: target resolution when ref/selector is absent, clearing semantics, return/failure behavior, and handling of ambiguous element matches. The sibling routing helps but does not make the description complete.

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 the schema already documents ref, text, clear, and selector meaningfully. The description largely restates 'ref or CSS selector' without adding substantive value beyond what the parameter descriptions already give, landing at the baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Type text into an input identified by ref or CSS selector.' It clearly differentiates itself from sibling tools by explicitly naming fill_form and press_key as the alternatives for multi-field and special-key scenarios.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool ('Type text into an input') and when not to: 'For 2+ fields use fill_form; for special keys (Enter, Escape, Tab, arrows) or shortcuts (Ctrl+K) use press_key.' It also communicates the ref-preferred, selector-fallback targeting strategy.

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

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/Silbercue/public-browser'

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