Skip to main content
Glama

type

Inputs text into a target field, focusing it first when a target is provided; optionally clears existing text or presses Enter.

Instructions

Types text into an input (focuses it first when a target is given).

Input Schema

NameRequiredDescriptionDefault
xNoViewport x in CSS px (same as screenshot pixels at the default scale).
yNoViewport y in CSS px.
nthNoPick the nth match (0-based) when several match.
refNoRef from the last `snapshot` (e.g. "e12"). Most reliable.
textNoVisible text or label of the element (case-insensitive substring).
clearNoSelect existing text first so it gets replaced.
enterNoPress Enter afterwards.
exactNoWith `text`: require the whole label to match.
valueYes
withinNoSelector of a container to search in (e.g. a modal).
selectorNoCSS selector. Searches inside every shadow root; use " >>> " to step into a specific shadow root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

The description adds real context beyond the readOnlyHint=false annotation: it discloses that typing mutates page state and that a supplied target is focused first. It does not say whether existing content is preserved by default (the `clear` flag implies it is), nor how target resolution behaves if multiple match.

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 front-loaded sentence with zero filler. However, for an 11-parameter tool, the available space is under-used rather than economically used, which keeps it off a 5.

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?

The tool has 11 parameters and no output schema, and the description never explains how the distinct target strategies (ref, selector, text, x/y) interact or which is preferred. It is minimally viable but leaves an agent to infer the core addressing model from the schema alone.

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 91%, so the schema already documents nearly every parameter, including `ref`, `selector`, `text`, `clear`, and `enter`. The description adds only the implied notion of an optional "target" and focus behavior, which is marginal over the schema baseline.

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 an input") that an agent can distinguish from `key` (key presses) at a glance. It does not explicitly name the sibling alternatives, so it stops short of a 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 guidance on when to prefer this over `key` for pressing Enter, over `click` for focusing, or what happens if no target is supplied. The parenthetical only describes an internal behavior, not a usage condition.

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