New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

pi-bash-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-bash-image

Inject images into bash tool results

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

pi-bash-image

pi extension that lets bash return images inline.

Normally, seeing an image takes 2 calls:

  • bash
  • read

This adds a __PI_IMAGE__ helper so bash can return the image in the same result.

It reuses pi’s public read tool for image handling, so image processing matches pi’s read behavior.

Install

pi install npm:pi-bash-image

Usage

# image in same result
agent-browser screenshot page.png && __PI_IMAGE__ page.png

# text + image together
agent-browser snapshot -i | __PI_IMAGE__ page.png

# multiple images
__PI_IMAGE__ before.png after.png

How it works

  • injects a __PI_IMAGE__ shell helper into bash
  • helper prints markers for image paths
  • extension replaces those markers with the same content blocks pi read would return for that image
  • all other bash behavior stays the same

License

MIT

Keywords

pi-package

FAQs

Package last updated on 29 Apr 2026

Related posts