image-render: images drawn inline in Claude Code

image-render is a Claude Code plugin that draws the images Claude Code
reads, right under the tool row in the terminal transcript. A Read of a
PNG, JPEG, GIF or WebP, and a screenshot that an MCP tool such as Playwright
returns, show up as pictures instead of a file name or a line of alt text.
It uses the mods API's ui.Image on terminals that speak the kitty graphics
protocol (Ghostty, kitty, WezTerm).

Quick install
In Claude Code, run:
/plugin marketplace add ejklock/claude-image-render
/plugin install image-render@image-render
Or in one line:
/plugin install image-render --marketplace ejklock/claude-image-render
Requirements: Claude Code with the mods API (tested on 2.1.314) and a
terminal that speaks the kitty graphics protocol. sips on macOS or
ImageMagick's magick is needed only for JPEG, GIF, WebP and PNGs over
2 MiB; magick also gives the zoom pane its full-resolution crops.
What it draws
Every picture is at most 60 columns wide, narrower on a narrow or short
terminal, and sits under Claude Code's own tool row, which stays as it is,
with a ⤢ zoom button under it.
| Where | What | How it is drawn |
|---|
Read of a PNG | The image the tool returned | From the returned bytes |
Read of a JPEG, GIF or WebP | The file at the Read's file_path | Converted to a PNG with sips, or magick when sips fails, then drawn |
| An MCP tool's result (a browser screenshot, say) | Each PNG image block, one picture per block | From the block's bytes |
The codemode tool, or any result that names a saved picture in an [Image: source: <path>] line | The picture Claude Code saved in its own tool-results folders | From the saved file: a .png as it is, a .jpg, .jpeg, .gif or .webp converted; a file with another extension is left as Claude Code draws it |
| A PNG over 2 MiB, such as a full-page screenshot | The saved file of an MCP picture, or the file_path of a Read | Shrunk to a PNG at most 1024 pixels on its longer side, then drawn |
When neither converter can read a file, the row renders as Claude Code draws
it. Other files, other image blocks and other tools render exactly what
Claude Code draws.
On Linux, a large PNG that Claude Code shrinks and hands back as a JPEG is
converted under its real format, read from the file's first bytes.
Zoom
A click on ⤢ zoom under a picture opens it in a pane. The click reaches the
plugin when Claude Code runs fullscreen. In the pane:
| Key | What it does |
|---|
1, 2, 4, 8 | Fit the whole picture, or show a half, a quarter or an eighth of each side |
| Mouse wheel | Zoom in (up) or out (down), from the whole picture to 16 times |
h, j, k, l | Move left, down, up, right by half the view, stopping at the edges |
q or Escape | Close the pane |
For a Read, the pane decodes the original file once with magick and crops
it in memory at every key, so small text in a dense diagram stays sharp. A
picture with no file (an MCP image block) or a machine without magick gets
the row's picture scaled instead. The terminal draws the image only; clicking
the picture itself or dragging it with the mouse does not reach a plugin.
A screenshot from a browser MCP tool:

A JPEG that Read returned:

Terminals
-
Ghostty, kitty and WezTerm speak the kitty graphics protocol and draw the
pictures.
-
herdr identifies itself as libghostty, so Claude Code does not detect
kitty graphics there and draws only the alt text. Start Claude Code with
CLAUDE_CODE_FORCE_TERMINAL_IMAGES=1:
CLAUDE_CODE_FORCE_TERMINAL_IMAGES=1 claude
The plugin sends each picture as data, not as a file name, which herdr
forwards.
-
Any other terminal renders exactly what Claude Code draws.
What it never does