Skip to main content
Glama

type

Enter text into input, textarea, or contenteditable elements using a snapshot ref or CSS selector; optionally clear existing content and press Enter to submit.

Instructions

Type text into an input/textarea/contenteditable, by ref or CSS selector. Optionally press Enter after.

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": {
      "target": "<target>",
      "text": "<text>"
    },
    "name": "type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
clearNoClear existing value first (default true)
tabIdNo
submitNoPress Enter after typing
targetYesref from snapshot: "e12" (single-agent) or "a<actor>:e12" (multi-agent session, copy exactly as shown), or a CSS selector

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / target / description
      Added value: +"ref from snapshot: \"e12\" (single-agent) or \"a<actor>:e12\" (multi-agent session, copy exactly as shown), or a CSS selector"
  2. First observedv0.2.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key side effect ('Optionally press Enter after') and implies page mutation, but omits that existing values are cleared by default, any failure behavior, or permission/visibility requirements. It adds some behavioral context but leaves important write-operation traits unstated.

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?

Two sentences, front-loaded with the core action and target types, with zero wasted wording. Every clause conveys actionable information.

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?

For a five-parameter mutation tool with no annotations and no output schema, the definition covers the primary action but leaves 'tabId' semantics and the destructive default of clearing existing text unaddressed. Adequate as a minimum, but not complete for correct invocation in a multi-tab or form-preserving context.

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 60%, and the description largely restates what the schema already documents for 'target' and 'submit'. The undocumented 'tabId' parameter and the default clearing behavior are not explained in the description, so it adds only marginal meaning beyond the schema.

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 ('Type text into an input/textarea/contenteditable') plus the two targeting modes ('by ref or CSS selector') and the optional Enter behavior. It is clearly distinguishable from siblings like press, click, or select_option, though it does not explicitly name any of them.

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?

There is no guidance on when to use this tool versus alternatives; notably, the 'press' sibling exists while this tool's 'submit' parameter also presses Enter, and the description does not clarify which to prefer. It also says nothing about prerequisites such as the element needing to be visible or the target needing to come from snapshot.

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