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
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| title | No | ||
| width | Yes | ||
| height | Yes |