capture_screenshot
Capture full-screen, selected region, or a specific window screenshot to save or annotate. Choose capture mode and coordinates as needed.
Instructions
Capture a screenshot of the screen, a region, or a specific window.
On macOS, this uses the native screencapture command. On other systems, it uses PIL's ImageGrab or pyautogui as fallback.
For window capture on macOS, you need the numeric window ID (not the window name). You can find window IDs using: osascript -e 'tell app "System Events" to get id of windows of processes'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate for region capture | |
| y | No | Y coordinate for region capture | |
| mode | No | Capture mode: fullscreen, region (interactive selection), or window | fullscreen |
| width | No | Width for region capture | |
| height | No | Height for region capture | |
| window_id | No | Window ID for window capture (macOS). Use 'osascript' or 'GetWindowID' to find window IDs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Image width in pixels | |
| height | Yes | Image height in pixels | |
| message | Yes | Status message | |
| image_id | Yes | Unique identifier for the captured image |