screenshot
Capture the full screen, a selected region, or a specific application window to an image file or the clipboard. Specify format, save path, and overwrite behavior as needed.
Instructions
Capture the full screen, a region, or a single application window to a file, or to the clipboard with clipboard: true (which replaces the clipboard contents). An existing file is never overwritten unless overwrite: true is passed, and the path extension must match the format. Requires Screen Recording permission in System Settings > Privacy & Security > Screen Recording.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | For window mode: app name to capture. | |
| mode | No | Capture mode. | fullscreen |
| path | No | Absolute output file path; the extension must match 'format'. Defaults to a timestamped file in the temp directory. | |
| format | No | Image format. | png |
| region | No | For region mode: capture area {x, y, width, height}. | |
| window | No | For window mode: window index (1-based). | |
| display | No | For fullscreen mode: display number (1=main). | |
| clipboard | No | Copy to the clipboard instead of writing a file. This replaces the current clipboard contents. | |
| overwrite | No | Allow replacing an existing file at 'path'. Without this an existing file is never overwritten. |