Skip to main content
Glama

Screenshot an app window

ui_screenshot
Read-only

Capture an app's main window or the full screen as an image—even when the app is behind other windows—to visually verify UI states and results.

Instructions

Capture an app's main window (or, without app, the whole screen) as an image. Works while the app is behind other windows, but not while it's hidden, and the apps these tools drive stay hidden: for them, check results through output files or read-back tools instead. Needs Screen Recording permission for the app running this server.

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

Input Schema

NameRequiredDescriptionDefault
appNoApp to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path
maxSizeNoLongest side in pixels

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and locality are covered, and the description adds real value with the occlusion caveat (works behind other windows) and the hidden-app failure mode. However, with no output schema it never says whether the result is an inline image or a file path, or how the image is delivered — a meaningful omission for a capture tool.

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 tight sentences, front-loaded with the core action and scope, then the failure mode, then the permission requirement. No filler and no repetition of structured fields.

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 simple two-parameter, zero-required read-only tool this covers operation correctly, including the hidden-app trap that would otherwise cause silent failures. The remaining gap is return-value shape (inline image versus file path), which no output schema covers.

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%, so the baseline is 3, but the description adds meaning the schema does not: omitting app captures the whole screen, and the app value names specific supported apps. maxSize behavior is left to the schema, which is acceptable since it is fully documented there.

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?

The description states a specific verb and resource — capture an app's main window as an image — and immediately defines the parameter-driven scope variant (whole screen when app is omitted). An agent can tell this is a pixel-capture tool rather than an accessibility/read-back tool without opening the schema.

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

Usage Guidelines5/5

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

It gives an explicit when-not: the apps these tools drive stay hidden, so screenshots will not work and results should instead be checked via output files or read-back tools. That exclusion plus the named alternative path is exactly the routing guidance an agent needs, and the permission prerequisite is stated up front.

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