preview-server.py

Tools · A check on the result · MIT

What it does

A 46-line Python web server for the loop's screenshots: it serves the working folder on this machine only and accepts a PNG posted to /__capture, saving it under .dream-loop/captures/ with a timestamp and as latest.png, so a page can hand its own canvas to the agent. Nothing in the skill's text mentions it; the agent has to find it.

Get it

python3 scripts/preview-server.py --directory . --port 4172 then from the page: fetch('/__capture', {method: 'POST', body: pngBlob})

Source on GitHub
Needs

Python 3

License

MIT

License notes are on the pack's page

From

dream-loop

Everything from dream-loop in the gallery

Back to the Asset Library