MCPcopy Create free account
hub / github.com/AmberSahdev/Open-Interface / get_screenshot

Method get_screenshot

app/utils/screen.py:16–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 return screen_width, screen_height
15
16 def get_screenshot(self) -> Image.Image:
17 # Enable screen recording from settings
18 img = pyautogui.screenshot() # Takes roughly 100ms # img.show()
19 return img
20
21 def get_screenshot_in_base64(self) -> str:
22 # Base64 images work with ChatCompletions API but not Assistants API

Calls

no outgoing calls

Tested by

no test coverage detected