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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"windowHandle": "<windowHandle>"
},
"name": "capture_window"
}
}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. |