capture
Capture a screenshot of a window, screen, or foreground app to diagnose UI errors and verify layouts. Specify window title, process name, or crop region for targeted captures.
Instructions
Capture a screenshot of a window by title or app name. Omit both window_title and process_name to capture the currently focused foreground window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Optional region to crop from the captured window. Coordinates are relative to the window. Values exceeding window dimensions are clamped. | |
| mode | No | Capture mode: 'window' (default) captures a specific window, 'screen' captures the full primary monitor. In screen mode, window_title and process_name are ignored. Screen capture requires '__screen__' in the allowlist. | window |
| format | No | Image format: 'png' (default, lossless) or 'jpeg' (smaller, lossy) | |
| quality | No | JPEG quality 1-100 (default: 85). Ignored for PNG. | |
| dpi_mode | No | DPI scaling: 'native' (default, raw pixel resolution) or 'logical' (scaled to match visible UI size on HiDPI displays). Reduces payload size on high-DPI monitors. | |
| max_width | No | Maximum image width in pixels. If set, wider screenshots are proportionally scaled down. | |
| output_path | No | Optional file path or directory to save the screenshot PNG to | |
| process_name | No | The process name to capture (e.g. 'chrome', 'Unity'). More stable than window titles which change dynamically. | |
| window_title | No | The window title or app name to capture. Omit to capture the foreground window. | |
| copy_to_clipboard | No | If true, also copies the captured image to the Windows clipboard after redaction has been applied. The base64 image is still returned. Rejected when frontmost mode is used (window identity unknown before capture). |