Skip to main content
Glama

mac_screenshot

Read-onlyIdempotent

Capture the Mac screen as PNG base64: the main display, display (index from mac_windows), or one window by window_id (CGWindowID from mac_windows; works when covered).

Instructions

Capture the Mac screen as PNG base64: the main display, display (index from mac_windows), or one window by window_id (CGWindowID from mac_windows; works when covered). A display capture can be cropped to region {x,y,w,h} in screen points as mac_windows reports them (the main display's top-left is 0,0; a display to its left has negative x), not relative to the display; with display given, a region not inside that display is refused. Returns {scale, logical_size, screen, screenshot_id}; click coordinates are in points (pixels / scale). screenshot_id (valid 30 s) lets mac_click take x,y in screenshot pixels: the window's geometry is re-checked first and a window that moved, resized or was rebuilt since the capture is refused as stale.

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

Input Schema

NameRequiredDescriptionDefault
regionNo
displayNo
window_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.6
    • addedInput schema / properties / display
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / window_id
      Added value: +{
      +  "type": "integer"
      +}
  2. First observedv0.1.2

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, and the description does not contradict them. It adds real behavioral detail beyond them: a 30 s screenshot_id lifetime, stale-geometry refusal on move/resize/rebuild, and the refusal of out-of-display regions. Given the safety profile is fully covered by annotations, the remaining added context is useful but mostly constraint mechanics rather than new risk disclosure.

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?

Front-loaded with the verb and the three modes, then constraints, then return semantics; nothing is idle. The cost is density: deeply nested parentheticals (e.g. the region coordinate clause) make it a single long prose block that rewards careful reading.

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

Completeness5/5

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

No output schema exists, and the description supplies the return shape {scale, logical_size, screen, screenshot_id} plus the points-vs-pixels conversion rule (pixels / scale) needed to feed coordinates into mac_click. For a read-only capture tool with zero schema documentation, this covers everything an agent needs to call it and to use the result.

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

Parameters5/5

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

Schema coverage is 0% and the nested region object is opaque, so the description must carry the load, and it does: display is an index from mac_windows, window_id is a CGWindowID from mac_windows, and region is {x,y,w,h} in screen points reported as mac_windows reports them. It even clarifies the coordinate origin, including negative x for a display left of main, and that region is screen-relative rather than display-relative.

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 Mac screen as PNG base64') and immediately enumerates the three capture targets: main display, indexed display, or a single window by window_id. This is unambiguously distinct from browser_screenshot and from the mac_windows discovery tool.

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

Usage Guidelines4/5

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

Gives concrete routing guidance: display indices and window_id values come from mac_windows, window capture works even when covered, and screenshot_id is the handoff to mac_click. It also states refusal conditions (region outside the given display). It stops short of stating when not to use this at all, e.g. versus browser_screenshot for browser content.

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