Skip to main content
Glama

electron_screenshot

Capture the current Electron app window as a base64 image, optionally saving it to a specified filename for inspection, debugging, or visual verification.

Instructions

Take a screenshot of the current Electron app window. Returns the screenshot as base64 image.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "electron_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the return format (base64 image), but says nothing about what the undocumented 'filename' parameter does to that behavior — whether it writes to disk, overwrites, changes the return value — nor about capture scope (full window vs. viewport) or failure modes if no app is running.

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 sentences, front-loaded with the action and followed by the return format. Nothing is padded, though the definition is lean to the point of omission rather than efficient completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Placeholder.

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% for the single 'filename' parameter, and the description never mentions it. An agent cannot tell whether supplying filename suppresses the base64 return, where the file lands, or what format it uses — a meaningful gap rather than a neutral omission.

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 concrete verb and resource: 'Take a screenshot of the current Electron app window.' An agent can tell this is image capture rather than the DOM/accessibility capture implied by electron_snapshot, though the distinction is left implicit rather than named.

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 when-to-use guidance, no mention of when to prefer electron_snapshot or the CDP tools instead, and no stated prerequisite that the app must be launched first. The agent must infer the usage context entirely.

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