Skip to main content
Glama

electron_type

Types text into an Electron app's input field or textarea, optionally clearing existing content first by using the element reference.

Instructions

Type text into an input field or textarea

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": {
      "ref": "<ref>",
      "text": "<text>",
      "clear": "<clear>"
    },
    "name": "electron_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement reference (e.g., e1, e2) for input field
textYesText to type into the field
clearYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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 behavioral burden, and it discloses very little. It does not say whether typing dispatches keyboard events, whether the element must be focused or visible, what happens on failure, or how existing text is handled beyond the schema's 'clear' flag. The target-element restriction to input/textarea is useful but far from complete for an interaction tool.

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 no wasted wording. It is efficient, though the terseness borders on under-specification given the tool's interaction complexity.

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 three-parameter interaction tool with no annotations and no output schema, the definition is too thin. It omits prerequisites, event-dispatch behavior, failure modes, and the semantics of 'clear', all of which an agent needs to invoke it correctly.

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 coverage is only 67%; ref and text are documented in the schema, but clear has no description beyond its default. The description adds no meaning beyond the schema and does not explain what 'clear' does when set to false. It therefore leaves the one partially undocumented parameter unexplained.

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?

The description states a specific verb and target: 'Type text into an input field or textarea.' This is clearly distinguishable from siblings like electron_click or electron_verify_value. It does not explicitly differentiate against any particular sibling, but the operation is unambiguous.

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, no prerequisites, and no exclusions. The agent can infer it is for text entry, but the definition offers no routing context such as when to prefer electron_cdp_evaluate or how focus/visibility affects success.

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