Capture Window
capture_windowScreenshot any single window using its window handle. Automatically falls back to a native method when Screen Recording permission is unavailable.
Instructions
Take a screenshot of a single window, identified by the windowHandle from list_capturable_windows. Requires Screen Recording permission; falls back to screencapture -l if the helper is unavailable (the raw windowId embedded in the handle is reused directly, so this still works in fallback mode).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxWidth | No | Downscale to this pixel width if larger. Defaults to MACCTL_MAX_IMAGE_WIDTH. | |
| windowHandle | Yes | A windowId returned by list_capturable_windows. |