an opencode cli plugin that enables vision models to read local images reliably by injecting them as native file attachments.
-
clone the repository:
git clone https://github.com/cybe42/opencode-plugin-view-image.git cd opencode-plugin-view-image npm install -
add the absolute path to your
~/.config/opencode/opencode.json:{ "plugin": [ "/absolute/path/to/opencode-plugin-view-image" ] } -
restart your opencode session.
the plugin registers a view_image tool. instruct opencode to use it when you need to inspect an image file.
view the image at /path/to/image.png using view_image
opencode, opencode-plugin, vision, image, mcp, ocr, multimodal, local