Screenshot Region
screenshot_regionSelect a rectangular screen area using pixel coordinates and return it as a base64-encoded image, enabling AI agents to capture and inspect screen regions on Hyprland.
Instructions
Capture a rectangular screen region by pixel coordinates using grim (Wayland wlroots screencopy). Coordinates are in layout pixels. Returns the image inline as base64.
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
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left X coordinate in pixels | |
| y | Yes | Top-left Y coordinate in pixels | |
| scale | No | Downscale factor (e.g. 0.5 for half resolution) to reduce image size | |
| width | Yes | Region width in pixels | |
| height | Yes | Region height in pixels | |
| include_cursor | No | Include the mouse cursor in the screenshot |