take_screenshot
Capture screenshots of screen, display, window, or region. Auto-resizes to 1600px and compresses to 1.8MB for API compatibility, with option to save at full resolution.
Instructions
Captures a screenshot of the screen, display, window, or region. Auto-resized to max 1600px and compressed to max 1.8MB for API compatibility (both file and base64 output). Use rawFile: true to save at full resolution, or maxDimension/maxFileSize: 0 to disable processing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| display | No | Display number to capture (1-based) | |
| windowId | No | Window ID to capture | |
| region | No | Region coordinates for partial capture | |
| format | No | Output format (png or jpg) | png |
| filePath | No | File path to save screenshot (returns base64 if not specified) | |
| maxDimension | No | Maximum dimension (width or height). Default: 1600. Set to 0 to disable resizing. Applies to both file and base64 output. | |
| maxFileSize | No | Maximum file size in bytes. Default: 1800000 (1.8MB). Set to 0 to disable compression. Applies to both file and base64 output. | |
| quality | No | JPEG quality for compression (1-100). Default: 85. Only used when compression is applied. | |
| rawFile | No | Skip resize/compression for file output. Default: false. Set to true to save at full resolution. |