Skip to main content
Glama
Chrome Testing MCP Server

Chrome Testing MCP Server

by prabhubng

Type Text

chrome_type

Types text into an input element found by CSS selector, optionally clearing existing text first and adding a delay between keystrokes.

Instructions

Type text into an input element.

Finds an input by CSS selector and types text into it.

Args:

  • selector (string): CSS selector of input element (required)

  • text (string): Text to type (required)

  • clearFirst (boolean): Clear existing text first (default: true)

  • delay (number): Delay between keystrokes in ms (default: 0)

Returns: Confirmation of typing action.

Examples:

  • Type in search: { selector: "#search", text: "query" }

  • Type slowly: { selector: "input", text: "text", delay: 50 }

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": {
      "selector": "<selector>",
      "text": "<text>"
    },
    "name": "chrome_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to type
delayNoDelay between keystrokes in milliseconds
selectorYesCSS selector of input element
clearFirstNoClear existing text before typing (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare that this is a non-readonly, non-destructive, non-idempotent, closed-world action. The description adds useful behavioral context by noting that clearFirst defaults to true and that delay controls keystroke timing, but it does not cover edge cases such as selector-not-found behavior, waiting, or focus requirements.

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?

The description is front-loaded with the core action and then organized into Args, Returns, and Examples sections. The Args section largely duplicates schema content, but the examples are compact and the overall structure remains easy to scan.

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 simple typing action with no output schema, the description covers the action, required and optional parameters, default behavior, and a basic return value. It omits some edge-case behavior, but the annotations and schema carry most of the remaining safety and parameter detail.

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 all four parameters are already documented in the schema. The description repeats the same parameter meanings and defaults, adding little semantic detail beyond what the structured schema provides.

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 states a specific verb and resource: type text into an input element. It also explains the mechanism, finding the input by CSS selector, which distinguishes it clearly from sibling actions like click and navigate.

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?

The description gives examples of how to type into a search box or type slowly, but it does not say when this tool should be used instead of alternatives or what prerequisites apply. There is no explicit when-to-use or when-not-to-use guidance.

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