Screenshot Window
screenshot_windowCapture a specific window on a Hyprland desktop by title, class, address, or focused window. Resolves the target and returns the screenshot as base64 for further analysis.
Instructions
Capture a specific window by title, class, address, or the keyword "focused". Uses hyprctl to resolve the window and grim -T to capture it. 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": {
"window": "<window>"
},
"name": "screenshot_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | Yes | Window to capture: "focused" for the active window, an exact address (0x...), or a substring matched against window title and class | |
| include_cursor | No | Include the mouse cursor in the screenshot |