Skip to main content
Glama

screenshot

Captures a PNG image of a Swing window or component even when covered, and defaults to the modal dialog, active window, or main frame if no reference is supplied.

Instructions

PNG image of a window or component, painted by Swing itself (works even if the window is covered). Without ref: the modal dialog, active window or main frame.

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": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoWindow or component ref

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With zero annotations the description carries the full burden, and it does disclose genuinely useful behavior: output is PNG, rendering is done by Swing rather than the OS, and capture succeeds even if the window is occluded. It omits what happens when no window matches, whether an empty result or error is returned, and any sizing/scaling behavior.

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 compact sentences with zero filler: the output format and rendering caveat lead, and the default-target rule follows. Every clause carries information an agent needs.

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

Completeness4/5

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

For a one-optional-param read operation with no annotations or output schema, the definition covers output format, rendering behavior, and the default target selection, which is enough to invoke it correctly. It would be complete with a note on what happens when no matching window exists.

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?

Schema coverage is 100% for the single 'ref' parameter, so the baseline would be 3; the description earns an extra point by explaining the fallback resolution order when ref is omitted (modal dialog → active window → main frame), which the schema does not convey.

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+resource: produces a PNG image of a window or component, and adds the distinguishing implementation detail that it is painted by Swing so it works even when the window is covered. It does not, however, differentiate itself from the sibling 'snapshot', which an agent could reasonably confuse with this tool.

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?

Provides implied usage through the ref-optional rule: omit ref to target the modal dialog, active window, or main frame. There is no explicit guidance on when to prefer this over 'snapshot' or other observation tools, nor on failure conditions, so the agent must infer the selection rule.

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