Skip to main content
Glama

capture_window

Capture the frontmost app window as a screenshot with accessibility text, including off-screen content, and optionally target a specified app.

Instructions

Capture the user's frontmost app window right now (the AI client's own window is skipped). Returns screenshot + accessibility text including off-screen text. Optionally target a specific app.

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
appNoOptional app name or bundle id, e.g. "Safari" or "com.apple.Notes".
max_charsNoMax characters of window text to return (default 40000).
include_screenshotNoAttach the window screenshot (default true). Set false for text-only models.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 load: it discloses the self-window exclusion, that off-screen text is included, and the defaults for screenshot and text length. It omits operationally critical behavior such as required screen-recording/accessibility permissions, what happens if the target app is not running, and whether the call is a pure read.

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?

Three compact sentences, front-loaded with the primary behavior, then the return payload, then the optional targeting. No filler or redundant restatement of the tool name.

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?

No output schema exists, yet the description explicitly characterizes the return payload (screenshot plus accessibility text, including off-screen content), which is the main thing an agent needs. Remaining gaps are permission requirements and failure conditions for a zero-required-parameter capture tool.

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

Parameters3/5

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

Schema coverage is 100%, so all three parameters are already documented in the schema. The description only reinforces that 'app' is optional and that targeting a specific app is the alternative to the frontmost-window default; it adds no syntax, limits, or interaction detail for max_chars or include_screenshot.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Capture the user's frontmost app window right now') plus exactly what comes back (screenshot + accessibility text, including off-screen text). The parenthetical that the AI client's own window is skipped preempts the most obvious confusion an agent would have.

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?

The phrase 'right now' implicitly positions this as a live capture versus the snapshot-retrieval siblings (get_snapshot, list_snapshots), and 'optionally target a specific app' clarifies the default scope. However, it never explicitly says when to prefer this over retrieving a stored snapshot, nor when not to call it.

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