Skip to main content
Glama

cua_screenshot

Capture full-display, window, or region screenshots on macOS and Windows with optional coordinate grids and numbered OCR/accessibility marks to locate UI elements for precise clicking.

Instructions

Capture a macOS or Windows screenshot (full display, app window, or crop region) with optional coordinate grid (grid=true, ideal for Blender/Photoshop viewports) and Set-of-Marks or Offline OCR numbered boxes (annotate='som'|'ocr') that populate element refs for zero-guess clicking.

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

Input Schema

NameRequiredDescriptionDefault
gridNoOverlay a labeled logical coordinate grid.
regionNo
targetNofull
displayNo
annotateNo'som' draws Accessibility/UIAutomation boxes; 'ocr' draws offline OCR boxes (works in Blender/Metal/OpenGL/DirectX!).none
app_nameNo
max_widthNo
return_imageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.4/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 disclosure burden. It does contribute real behavior beyond structured fields — that som draws Accessibility/UIAutomation boxes, ocr draws offline OCR boxes, and that these populate element refs — but it never states permission requirements (e.g. macOS screen-recording consent), whether the operation mutates anything, or what is returned when return_image is false.

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?

A single front-loaded sentence that names the core action first, then qualifies with modes and use cases. It is dense but every parenthetical (grid for viewports, ocr for GPU viewports) carries information; the nesting of three parentheticals makes it slightly harder to scan than it could be.

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

Completeness3/5

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

For an 8-parameter tool with no annotations and no output schema, the description should clarify return shape (image plus refs?) and side effects. It covers capture modes and annotation behavior well but leaves roughly half the parameters and the entire return contract to inference.

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 only 25% across 8 parameters, so the description must compensate. It meaningfully explains grid, target scopes, and both annotate enum values, but app_name, display, max_width, return_image, and the nested region object receive no explanation beyond the bare schema.

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?

Opens with a specific verb and resource ('Capture a macOS or Windows screenshot') and enumerates the capture scopes (full display, app window, crop region). It also distinguishes itself from plain screen-grab tools by noting that annotate modes 'populate element refs for zero-guess clicking', which separates it from cua_ocr and cua_find_elements in spirit, though no sibling is named explicitly.

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 context is implied rather than stated: grid is 'ideal for Blender/Photoshop viewports' and 'ocr' 'works in Blender/Metal/OpenGL/DirectX!'. That helps an agent choose between som and ocr, but there is no explicit when-to-use versus cua_ocr, cua_ui_tree, or cua_find_elements, and no exclusions or prerequisites.

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