Skip to main content
Glama
puppeteer-mcp-claude

puppeteer-mcp-claude

by jaenster

puppeteer_type

Types text into a webpage element matched by a CSS selector to fill forms and input fields during Chromium browser automation.

Instructions

Type text into an element matching the given CSS selector.

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": "puppeteer_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
pageIdNo
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and does not meet it. It never says whether existing text is appended or replaced, whether the element is focused first, whether a wait/timeout applies, or what happens when the selector matches nothing.

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?

One tight sentence with the action front-loaded and no filler. It is efficient, though the brevity contributes to the missing behavioral detail.

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?

For a page-mutating tool with no annotations, no output schema, and an undocumented pageId, the definition is under-specified. An agent lacks enough information to invoke it reliably in multi-page sessions or when the target element may not yet be present.

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

Parameters2/5

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

Schema description coverage is 0% with three parameters. The description only implies the roles of 'selector' (a CSS selector) and 'text' (the string typed); 'pageId' is completely unexplained — an agent cannot tell whether it targets a specific page or defaults to the active one.

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 ('Type text') and target ('an element matching the given CSS selector'), which is enough to separate it from puppeteer_click or puppeteer_get_text. It stops short of explicitly naming a sibling or contrasting behavior, so it isn't 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 use this instead of puppeteer_evaluate, puppeteer_click, or set-value approaches, and no stated preconditions. It doesn't mention whether the selector must already exist or whether the caller should call puppeteer_wait_for_selector first — a common failure mode for typing tools.

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