Knowledge-work-plugins view-pdf
Interactive PDF viewer. Use when the user wants to open, show, or view a PDF and collaborate on it visually — annotate, highlight, stamp, fill form fields, place signature/initials, or review markup together. Not for summarization or text extraction (use native Read instead).
git clone https://github.com/anthropics/knowledge-work-plugins
T=$(mktemp -d) && git clone --depth=1 https://github.com/anthropics/knowledge-work-plugins "$T" && mkdir -p ~/.claude/skills && cp -r "$T/pdf-viewer/skills/view-pdf" ~/.claude/skills/anthropics-knowledge-work-plugins-view-pdf && rm -rf "$T"
pdf-viewer/skills/view-pdf/SKILL.mdPDF Viewer — Interactive Document Workflows
You have access to a local PDF server that renders documents in a live viewer and lets you annotate, fill forms, and place signatures with real-time visual feedback.
When to use this skill
Use the PDF viewer when the user wants interactivity:
- "Show me this contract" / "Open this paper"
- "Highlight the key terms and let me review"
- "Help me fill out this form"
- "Sign this on page 3" / "Add my initials to each page"
- "Stamp this CONFIDENTIAL" / "Mark this as approved"
- "Walk me through this document and annotate the important parts"
Do NOT use the viewer for pure ingestion:
- "Summarize this PDF" → use the native Read tool directly
- "What does page 5 say?" → use Read
- "Extract the table from section 3" → use Read
The viewer's value is showing the user the document and collaborating on markup — not streaming text back to you.
Tools
list_pdfs
list_pdfsList available local PDFs and allowed local directories. No arguments.
display_pdf
display_pdfOpen a PDF in the interactive viewer. Call once per document.
— local file path or HTTPS URLurl
— initial page (optional, default 1)page
— ifelicit_form_inputs
, prompts the user to fill form fields before displaying (use for interactive form-filling)true
Returns a
viewUUID — pass this to every interact call. Calling
display_pdf again creates a separate viewer; interact calls with
the new UUID won't reach the one the user is looking at.
Also returns
formFields (name, type, page, bounding box) if the PDF
has fillable fields — use these coordinates for signature placement.
interact
interactAll follow-up actions after
display_pdf. Pass viewUUID plus one or
more commands. Batch multiple commands in one call via the
commands array — they run sequentially. End batches with
get_screenshot to verify changes visually.
Annotation actions:
— add markup (see types below)add_annotations
— modify existing (id + type required)update_annotations
— delete by id arrayremove_annotations
— auto-find text by query and highlight it (preferred over manual rects for text markup)highlight_text
Navigation actions:
(page),navigate
(query),search
(query, silent),find
(matchIndex),search_navigate
(scale 0.5–3.0)zoom
Extraction actions:
— extract text from page ranges (max 20 pages). Use for reading content to decide what to annotate, NOT for summarization.get_text
— capture a page as an image (verify your annotations)get_screenshot
Form action:
— fill named fields:fill_formfields: [{name, value}, ...]
Annotation Types
All annotations need
id (unique string), type, page (1-indexed).
Coordinates are PDF points (1/72 inch), origin top-left, Y increases
downward. US Letter is 612×792pt.
| Type | Key properties | Use for |
|---|---|---|
| , , | Mark important text |
| , | Emphasize terms |
| , | Mark deletions |
| , , , | Sticky-note comments |
| , , , | Visible text on page |
| , , , , , | Box regions |
| , , , , , | Circle regions |
| , , , , | Draw lines/arrows |
| , , , , | APPROVED, DRAFT, CONFIDENTIAL, etc. |
| , , , , | Signatures, initials, logos |
Image annotations accept a local file path or HTTPS URL (no data: URIs). Dimensions auto-detected if omitted. Users can also drag & drop images directly onto the viewer.
Interactive Workflows
Collaborative annotation (AI-driven)
to open the documentdisplay_pdf
→interact
on relevant page range to understand contentget_text- Propose a batch of annotations to the user (describe what you'll mark)
- On approval,
→interact
+add_annotationsget_screenshot - Show the user, ask for edits, iterate
- When done, remind them they can download the annotated PDF from the viewer toolbar
Form filling (visual, not programmatic)
Unlike headless form tools, this gives the user live visual feedback and handles forms with cryptic/unnamed fields where the label is printed on the page rather than in field metadata.
— inspect returneddisplay_pdf
(name, type, page, bounding box)formFields- If field names are cryptic (
,Text1
),Field_7
the pages and match bounding boxes to visual labelsget_screenshot - Ask the user for values using the visual labels, or infer from context
→interact
, thenfill_form
to show the resultget_screenshot- User confirms or edits directly in the viewer
For simple well-labeled forms,
display_pdf with
elicit_form_inputs: true prompts the user upfront instead.
Signing (visual, not certified)
- Ask for the signature/initials image path
, checkdisplay_pdf
for signature-type fields or ask which page/positionformFields
→interact
withadd_annotations
at the target coordinatestype: "image"
to confirm placementget_screenshot
Disclaimer: This places a visual signature image. It is not a certified or cryptographic digital signature.
Supported Sources
- Local files (paths under client MCP roots)
- arXiv (
URLs auto-convert to PDF)/abs/ - Any direct HTTPS PDF URL (bioRxiv, Zenodo, OSF, etc. — use the direct PDF link, not the landing page)
Out of Scope
- Summarization / text extraction — use native Read instead
- Certified digital signatures — image stamping only
- PDF creation — this works on existing PDFs only