open · anthropics — Claude Code command: PDF viewer and install
open is a Claude Code command that displays PDFs in an interactive viewer. It runs when a document needs visual inspection rather than text extraction alone.
Apache-2.0 ★ 36,654 updated 2026-10-24
/plugin marketplace add anthropics/knowledge-work-plugins
/plugin install pdf-viewer@knowledge-work-pluginsWhat open does
The open command displays a PDF in an interactive viewer. Give it a file path or a URL and it calls display_pdf; with no argument, it first uses list_pdfs to show available documents.
It accepts local files, direct HTTPS PDF links, and arXiv links in the arxiv.org/abs/... form, which are converted to PDF links. For text extraction or a summary, use Claude’s Read tool on the PDF path instead. Viewing requires the connected display_pdf and list_pdfs tools.
What it helps with
- view a PDF as a document rather than extracted text
- find available PDFs when no path is provided
- inspect a document in an interactive viewer
Example prompts for the agent
- Open
reports/annual.pdfin the viewer. - Show me the available PDF documents.
- Open the PDF at the link I sent.
How to install open
1Plugin marketplace
/plugin marketplace add anthropics/knowledge-work-plugins/plugin install pdf-viewer@knowledge-work-plugins2Manually: put the files in place
.claude/commands/open.mdCall it with /open. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/open.mdCall it with /prompts:open. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/open.prompt.mdManually: put the files in place
.gemini/commands/open.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about open
How do I install open in Claude Code?
Run /plugin marketplace add anthropics/knowledge-work-plugins, then /plugin install pdf-viewer@knowledge-work-plugins. The command file is at .claude/commands/open.md.
What does the open command do?
It displays PDFs in an interactive viewer. If no path or URL is supplied, it lists the available documents first.
Which PDF sources does open support?
It accepts local files, direct HTTPS links to PDFs, and arXiv links that are converted to PDF links.
Source text
open.md · Apache-2.0
---
description: Open a PDF in the interactive viewer
argument-hint: "[path-or-url]"
---
> If you need to check which tools are connected, see [CONNECTORS.md](../CONNECTORS.md).
# Open PDF
Display a PDF document in the live viewer. Use this when the user wants
to **see** a document — not just extract its text.
## Instructions
1. If the user provides a URL or file path, call `display_pdf` with it
2. If no path given, call `list_pdfs` first to show available documents
3. After displaying, offer next steps based on the document type:
- **Contract / report** → "Want me to highlight key sections or add
review notes?"
- **Form** → "This has fillable fields — shall I help you fill it?"
- **Academic paper** → "Shall I walk through and annotate the key
findings?"
## Supported Sources
- Local files (paths or drag-and-drop into your working directory)
- arXiv (`arxiv.org/abs/...` auto-converts to PDF URL)
- Any direct HTTPS PDF URL (use the PDF link, not a landing page)
## When NOT to use this
If the user just wants a summary or text extraction, **do not** open
the viewer — use Claude's native Read tool on the PDF path instead.
The viewer is for interactive, visual workflows.
© Anthropic · Apache-2.0 · anthropics/knowledge-work-plugins
Similar slash commands
All slash commands for Office documents →open by other authors comes first.