Hey r/GoogleAntigravityIDE,
I use CLI-based AI tools (like Codex/Claude CLI) inside the Antigravity integrated terminal a lot. Whenever I wanted to pass a screenshot to the AI, it was a huge hassle—I had to save the image to my desktop, copy the path, and manually paste it into the terminal.
So, I built a small extension to completely automate this.
Terminal Image Paster captures your clipboard image when you press Cmd+V (while focused on the terminal), automatically saves it to a temporary .png file, and instantly injects the absolute file path straight into the terminal prompt. It relies on macOS JXA for 100% reliable clipboard extraction.
How to install in Antigravity: Since Antigravity uses the Open VSX registry by default, the easiest way to install it is:
- Download the
.vsixfile from the Marketplace link below (or GitHub releases). - In Antigravity, open the Extensions panel, click the
...at the top right -> "Install from VSIX..." - Select the file, and you're good to go! (If you have configured your Antigravity settings to point to the official MS Marketplace, you can just search for "Terminal Image Paster").
- Marketplace: https://marketplace.visualstudio.com/items?itemName=ss-fia.terminal-image-paster
- GitHub: https://github.com/SS-FIA/Terminal-image-paster
It's completely free and open-source. Hope this saves some keystrokes for anyone else using CLI AI tools!