← back to koboriakira__screen-times

All specs 1 total

All specs Real LLM only Function bodies
take_screenshotREAL LLM gemma4:latest · · unknown
src/screen_times/screenshot.py
Captures a screenshot, optionally restricting the capture area to specified window bounds. It accepts a directory path for saving the image and an optional tuple defining the capture region. The function first ensures the target directory exists, then executes a system command to capture the screen, and finally returns the full path to the newly created PNG file. A notable side-effect is that it prints error messages to standard error if the screenshot process fails.