Home / Claude Code mods / Interface / file-viewer

file-viewer

file-viewer is a Claude Code mod by matteo-psnt that inline previews of PDFs, Office files, images and animated GIFs in Claude Code, with a paging viewer and a preview tool Claude can call.

Updated 2026-11-19

What is file-viewer?

file-viewer is a Claude Code mod by matteo-psnt that inline previews of PDFs, Office files, images and animated GIFs in Claude Code, with a paging viewer and a preview tool Claude can call. It is listed under Interface and has no public popularity data yet.

TypeClaude code mod
Authormatteo-psnt
Repositorymatteo-psnt/file-viewer
Popularityno public popularity data yet
CategoryInterface
SecurityReview before installing (60/100)
Rank#7,250 of 9,397 Claude Code mods; #3,060 in Interface
LicenseMIT
Last commit2026-11-19
Hooks7 events
Seesmcp__file-viewer__preview calls
Draws onAbovePrompt, ToolResult, Pane

Is file-viewer safe to install?

file-viewer scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.process.spawn
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.registerdrives Claude
$.ui.blitdraws interface
$.ui.focusdraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface

How do I install file-viewer?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/matteo-psnt/file-viewer
    claude plugin validate ./file-viewer/plugin
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add matteo-psnt/file-viewer && claude plugin install file-viewer@file-viewer

Or ask Claude to set it up

Paste this into Claude Code and it installs file-viewer for you:

Install the "file-viewer" Claude Code mod from https://github.com/matteo-psnt/file-viewer/tree/main/plugin. Run claude plugin validate on it first and show me what it can access before you enable it.