Skip to main content
Glama

electron_launch

Launch an Electron desktop application for automated testing, then connect through WebdriverIO’s Electron service to begin UI inspection and automation.

Instructions

Launch an Electron application for testing. Connects via WebdriverIO with the Electron service.

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": {
      "binaryPath": "<binaryPath>",
      "windowWidth": "<windowWidth>",
      "windowHeight": "<windowHeight>",
      "waitTimeout": "<waitTimeout>"
    },
    "name": "electron_launch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
envNo
argsNo
binaryPathYesPath to the Electron application binary (.app on macOS, .exe on Windows)
waitTimeoutYes
windowWidthYes
windowHeightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full disclosure burden and falls well short. It does not say whether a window is opened and left running, whether the call blocks until ready, what happens on timeout or failure, whether permissions/display are required, or whether the caller must later close the session.

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?

Two short, front-loaded sentences with no filler, the action stated first and the implementation detail second. The brevity is not the problem; the omission of lifecycle and parameter information is.

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?

Seven parameters with four required, zero annotations, no output schema, and very sparse schema descriptions make this a high-burden definition that the description does not support. It says nothing about what a successful launch yields (session handle, port, process id) or how it interacts with the many sibling tools that presumably depend on it.

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 only 14% — just binaryPath is documented — and the description compensates for none of the remaining six parameters (cwd, env, args, waitTimeout, windowWidth, windowHeight). It gives no hint about units, defaults, env format (a string for environment variables is non-obvious), or the meaning of the required timeout and window dimensions.

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 resource: launching an Electron application, explicitly framed 'for testing'. It also names the underlying mechanism (WebdriverIO with the Electron service), which separates it from sibling tools like electron_click or electron_cdp_evaluate that act on an already-running app, though it never names those siblings directly.

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 explicit when-to-use guidance, no prerequisites (e.g. that this must be called before the CDP/action tools and paired with electron_close), and no exclusions. The phrase 'for testing' implies the context but an agent must infer sequencing and lifecycle on its own.

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