screenshot
Capture a still PNG of a screen, monitor, window, or region; returns the saved file path and an inline image for direct viewing.
Instructions
Capture a single still frame (PNG) of a target (full screen, a monitor, a window by title, or a region). Returns the image path, plus the image inline so the model can view it directly (disable with returnImage: false).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Optional output .png path. Defaults to a file under SCREENCAST_HOME/screenshots. | |
| target | Yes | Capture target: 'full' | 'monitor:<index>' | 'window:<title>' (or window:exe=<app.exe> / window:hwnd=<handle>) | 'region:<x>,<y>,<w>,<h>'. window: captures the on-screen rectangle the window occupies as currently displayed - it must be visible, on top, and not minimized (case-insensitive exact title, else substring; topmost match wins). | |
| backend | No | gdigrab (default, ~0.2 s) captures what is visible on screen. 'wgc' (window: targets only, FFmpeg 8+) captures the window's own surface through Windows Graphics Capture, even when other windows cover it; slower (~1-2 s). | |
| overwrite | No | Allow replacing an existing file at the output path (default false). | |
| exactTitle | No | For window: targets, match only a window whose title equals the given title (case-insensitive); never fall back to a substring match. Default false. | |
| returnImage | No | Also return the screenshot inline as an image the model can view directly (default true). The PNG on disk is always full resolution. | |
| maxImageWidth | No | Downscale the inline image to at most this width (default 1280). |