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.
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": "capture_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| title | No | ||
| width | Yes | ||
| height | Yes |