MCPcopy Create free account
hub / github.com/grapeot/devin.cursorrules / take_screenshot_sync

Function take_screenshot_sync

tools/screenshot_utils.py:40–44  ·  view source on GitHub ↗

Synchronous wrapper for take_screenshot.

(url: str, output_path: str = None, width: int = 1280, height: int = 720)

Source from the content-addressed store, hash-verified

38 return output_path
39
40def take_screenshot_sync(url: str, output_path: str = None, width: int = 1280, height: int = 720) -> str:
41 """
42 Synchronous wrapper for take_screenshot.
43 """
44 return asyncio.run(take_screenshot(url, output_path, width, height))
45
46if __name__ == "__main__":
47 import argparse

Callers 2

Calls 1

take_screenshotFunction · 0.85

Tested by 1