Skip to main content
Glama

screenshot_region

Capture a specified rectangular screen region as a PNG using pixel coordinates to debug UI or verify visual output.

Instructions

Capture a specific rectangular region of the screen as a PNG image. Coordinates are in pixels from the top-left corner of the display.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "screenshot_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX coordinate of the top-left corner in pixels
yYesY coordinate of the top-left corner in pixels
widthYesWidth of the region in pixels
heightYesHeight of the region in pixels

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the return format (PNG) and the coordinate origin (top-left of display), which are genuinely useful behavioral facts. It omits screen-recording permission requirements, multi-monitor/display selection, and high-DPI scaling behavior, all of which materially affect whether the captured pixels match the caller's intent.

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?

Two short sentences, front-loaded with the action and output format, with the coordinate convention second. No filler or redundant restatement of the parameter names.

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 four-parameter, flat, fully documented capture tool with no output schema, the description covers the essential contract: what is captured, in what format, and in which coordinate space. The missing pieces (permissions, multi-display, scaling, edge clipping) are secondary but would matter in real use.

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% with per-parameter descriptions, so the baseline is 3, and the description does add one piece of meaning beyond the schema: the coordinate frame is anchored to the top-left corner of the display, which clarifies how x/y relate to the physical screen. It adds nothing about width/height semantics such as clipping at screen edges.

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?

States a specific verb and resource ('Capture a specific rectangular region of the screen') plus the output format (PNG), which cleanly separates it from a fullscreen capture. It never names screenshot_fullscreen, so the contrast with the sibling is only implied by the word 'region'.

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 is only implied: an agent can infer this is for sub-screen areas and screenshot_fullscreen is for whole displays, but the description never says when to pick one over the other or what happens if the region exceeds the screen.

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

Deploy Server

Other Tools