Paste clipboard images into your pi conversations.
When you copy an image to your clipboard (screenshot, copied image, etc.), this extension:
- Saves it to a temp file (
%TEMP%\pi_clipboard_<timestamp>.png) - Inserts the file path into your editor
- You send the message → pi's
readtool opens the image so the LLM can see it
pi install git:github.com/penniey/pi-paste-imageOr install from a local path:
pi install ./pi-paste-image- Keyboard shortcut:
Ctrl+Alt+V(uses Alt instead of Shift to avoid terminal paste conflict) - Command:
/paste-image
Both methods append the image file path to whatever text you already have in the editor, so you can type your question around it:
What do you think about this? C:\Users\hugo2\AppData\Local\Temp\pi_clipboard_12345.png
Why not Ctrl+V? Terminals intercept Ctrl+V at a level below pi for raw text paste. When the clipboard contains an image, terminals paste nothing or garbled bytes. A TUI app can't override this, so we use Ctrl+Alt+V instead.
- Windows: Uses PowerShell + .NET
System.Windows.Forms.Clipboard(built-in, no dependencies) - macOS and Linux support can be added — see the source for the hooks.
The extension runs a PowerShell script (via -EncodedCommand to avoid quoting issues) that:
- Loads the
.NETclipboard assemblies (System.Windows.Forms,System.Drawing) - Extracts the image via
[System.Windows.Forms.Clipboard]::GetImage() - Saves it as PNG to
%TEMP% - Returns the file path to Node.js, which inserts it into the pi editor
The temp file persists until Windows cleans it up, giving pi's read tool time to open it.