Skip to main content
Glama

capture_region

Capture a rectangular screen region as a PNG image by specifying its top-left corner and dimensions. Optionally, use a window title to make coordinates relative to that window.

Instructions

Capture a rectangular screen region as a PNG image.

Args: x: Top-left X. Absolute screen coordinate, or relative to the window identified by title when that is given. y: Top-left Y. Absolute screen coordinate, or relative to the window identified by title when that is given. width: Region width in pixels. height: Region height in pixels. title: Optional window title. When set, x/y are treated as offsets from that window's top-left corner (use list_windows to find the title).

Returns the region as a PNG image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
titleNo
widthYes
heightYes
Behavior3/5

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

Describes coordinate modes and return type. No annotation provided, so description carries burden. Lacks details on edge cases (e.g., out-of-bounds) or side effects, but captures the essential behavior.

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?

Well-structured with Args section. Front-loaded with purpose. Efficient but somewhat lengthy due to detailed parameter descriptions; no wasted sentences.

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 capture tool with no output schema, it explains input parameters and return type. Missing some edge cases but adequate given simplicity. No annotations to offset gaps.

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%, yet description fully explains all 5 parameters, including the conditional behavior of x/y with title. Adds meaning beyond schema titles.

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?

Clearly states it captures a rectangular region as PNG. Differentiates from sibling tools by explaining coordinate system, but does not explicitly name alternatives for region vs window capture.

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?

Provides guidance for when to use the title parameter (offsets from window), and references list_windows for titles. However, no explicit when-not-to-use or comparison to capture_window/capture_widget.

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/cristopulos/QT_mcp_server'

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