Skip to main content
Glama

capture_window

Capture a specific window via PrintWindow, even when occluded or on a virtual display.

Instructions

Capture a specific window via PrintWindow (works even when occluded or on a virtual display).

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

Input Schema

NameRequiredDescriptionDefault
hwndNo
max_widthNo
save_pathNo
client_onlyNo
include_gridNo
title_containsNo
process_containsNo
annotate_elementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.8/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. It usefully discloses the PrintWindow mechanism and occlusion/virtual-display behavior, but does not state whether the tool writes to disk, what it returns, permission requirements, or how save_path and other options affect behavior.

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?

The description is a single front-loaded sentence with no wasted wording, and the parenthetical adds useful context efficiently. It is appropriately concise, though its extreme brevity leaves no structure for the eight parameters.

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 an eight-parameter tool with no annotations, no schema descriptions, and no output schema, the description provides only the core capture behavior and one robustness claim. It omits parameter selection, output/save behavior, and any error or permission context needed to call the tool confidently.

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

Parameters1/5

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

Schema description coverage is 0% across eight parameters, and the description does not explain any of them. It only says the tool captures a specific window, leaving hwnd, title_contains, process_contains, max_width, save_path, client_only, include_grid, and annotate_elements entirely undocumented.

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 clearly states a specific verb and resource: capture a specific window, and names the underlying PrintWindow method. It implicitly distinguishes window capture from monitor capture, though it does not explicitly mention sibling tools such as capture_monitor.

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 implied by 'specific window' and the note that it works when occluded or on a virtual display, which gives some conditions for use. However, it does not say when to prefer this over capture_monitor or list_windows, nor how to choose among hwnd, title_contains, and process_contains.

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