Find Screenshot
Workflow
- •Confirm scope: newest
.pngin~/temp/screenshotsby modification time. If the user asks for a different directory or pattern, ask for confirmation before proceeding. - •Run the script to get the latest screenshot path.
- •If the script reports missing directory or no PNGs, say so and ask the user what to do next.
- •Attach the image using the
view_imagetool, then reply with the path and note that the image was attached.
Command
Run:
bash
deno run --quiet --allow-read=$HOME/temp/screenshots --allow-env=HOME,USERPROFILE $CODEX_HOME/skills/find-screenshot/scripts/find_latest_screenshot.ts
It prints the absolute path on success and writes errors to stderr on failure.
Resources
scripts/
- •
find_latest_screenshot.ts: resolve newest PNG in~/temp/screenshots.