Skip to main content
Glama

electron_snapshot

Captures the current UI state and all interactive elements, returning element references (e1, e2, etc.) for use in subsequent interactions.

Instructions

Capture the current UI state including all interactive elements. Returns element references (e1, e2, etc.) that can be used for interactions.

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_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 discloses the return format (element refs e1, e2) and the scope of capture (all interactive elements), which is genuinely useful, but it never states that the operation is read-only, whether refs go stale after DOM changes, or whether capture is expensive.

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 short sentences, front-loaded with the action and followed by the return contract. Nothing is padded and no sentence is redundant.

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?

There is no output schema and no annotations, so the description must explain the response, and it only partly does: it names the ref format but not the overall shape (tree, list, text dump, or whether element labels/roles are included). For a zero-parameter snapshot tool this is adequate but leaves the agent guessing about the payload.

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

Parameters4/5

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

The tool takes zero parameters, so there is no parameter meaning to add; the baseline of 4 applies. The description correctly does not waste space restating a nonexistent input 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?

The description states a specific verb and resource: 'Capture the current UI state including all interactive elements,' and clarifies the return contract with element references (e1, e2). It implicitly distinguishes itself from electron_screenshot by emphasizing UI state and interactive elements rather than pixels, but never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by 'references ... that can be used for interactions,' which hints that this should precede click/type calls. There is no explicit when-to-use, no when-not-to-use, and no named alternative such as electron_screenshot or electron_generate_locator.

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