Take a screenshot
screenshotCaptures the screen, a pixel region, or a specific window as a PNG for visually inspecting canvas/WebGL, images, CAPTCHAs, or final results the accessibility tree cannot describe.
Instructions
Capture the real screen (or a region, or a specific window's bounds) via the Wayland compositor (grim). Returns a PNG image. EXPENSIVE: costs image tokens and a vision pass. For interactive elements (buttons, links, form fields) use read_page/click_element/type_into_element instead — they're exact and far cheaper. Reach for screenshot only for things the accessibility tree can't describe: canvas/WebGL content, images you need to actually look at, CAPTCHAs, or visually verifying a final result. IMPORTANT: when a region/window crop is used, the returned image's pixel (0,0) is NOT screen (0,0) — it's the region's top-left corner. The accompanying text tells you that offset; you MUST add it to any pixel position you read off the image before passing coordinates to click/move_mouse, or you will click the wrong place.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Pixel region to capture. Omit to capture the whole screen. | |
| window_address | No | Hyprland window address (from list_windows) to crop the screenshot to instead of specifying region manually. |