Skip to main content
Glama

Capture Screen Region

capture_region
Read-only

Take a screenshot of a rectangular region on macOS by specifying its top-left coordinates and size. Optionally downscale the output to a maximum width.

Instructions

Take a screenshot of a rectangular region in global screen points (top-left origin). Requires Screen Recording permission; falls back to screencapture -R if the helper is unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesRegion left edge, in global screen points.
yYesRegion top edge, in global screen points.
widthYesRegion width in points.
heightYesRegion height in points.
maxWidthNoDownscale to this pixel width if larger. Defaults to MACCTL_MAX_IMAGE_WIDTH.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows it's a safe read operation. The description adds valuable behavioral context by noting the Screen Recording permission requirement and the fallback mechanism to 'screencapture -R' if the helper is unavailable. This goes beyond the annotations without contradicting them.

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?

The description is two sentences, front-loaded with the core action, and every word contributes useful information (action, coordinate system, permission, fallback). There is no wasted content or unstructured rambling.

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?

The description covers purpose, coordinate system, permission, and fallback, but it does not mention the return format (e.g., file path, base64, image object) despite the lack of an output schema. This is a notable gap for a screenshot tool, as the agent would need to know what to do with the result. Given the schema is well-documented and annotations cover safety, the description is adequate but not fully complete.

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?

The input schema covers all parameters with descriptions, so the baseline is 3. The description adds a minor clarification about 'top-left origin' for the coordinate system, but this is largely redundant given the schema's 'left edge' and 'top edge' phrasing. It does not add meaningful semantics beyond the schema, so a score of 3 is appropriate.

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 clearly states a specific action ('Take a screenshot of a rectangular region') and specifies the scope ('in global screen points (top-left origin)'). This distinguishes it from sibling tools like 'capture' (presumably full screen) and 'capture_window' (window-specific), making the tool's unique purpose obvious.

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?

The description provides clear context by mentioning the coordinate system ('global screen points') and the requirement for Screen Recording permission. It implicitly differentiates from capture_window by focusing on coordinate-based regions, but it does not explicitly name alternatives or exclusions. Thus, it offers clear context without full when/when-not guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sitharaj88/macctl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server