-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Description
Add tools for capturing screenshots of the entire screen or specific regions.
SwiftAutoGUI API Reference
screenshot()- Capture entire screenscreenshot(region: CGRect)- Capture specific screen regionscreenshot(imageFilename: String)- Save screenshot to file
Proposed Implementation
Create screenshot-related tools:
screenshot
- Input:
region(object, optional) - {x, y, width, height} for specific regionfilename(string, optional) - Path to save the screenshot
- Output: Base64 encoded image data or file path
Implementation Options
- Return base64 encoded image data for MCP transport
- Save to temporary file and return path
- Both options based on parameters
Use Cases
- Visual verification in automation
- Capturing application state
- Debugging automation scripts
- Creating visual logs
Technical Considerations
- Image format (PNG, JPEG)
- File permissions and paths
- Memory usage for large screenshots
- Base64 encoding for data transport
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels