skill

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).

Anthropic4.80+ installsVetted

About

# PDF 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 available local PDFs and allowed local directories. No arguments.

### `display_pdf` Open a PDF in the interactive viewer. **Call once per document.** - `url` — local file path or HTTPS URL - `page` — initial page (optional, default 1) - `elicit_form_inputs` — if `true`, prompts the user to fill form fields before displaying (use for interactive form-filling)

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` All 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_annotations` — add markup (see types below) - `update_annotations` — modify existing (id + type required) - `remove_annotations` — delete by id array - `highlight_text` — auto-find text by query and highlight it (preferred over manual rects for text markup)

**Navigation actions:** - `navigate` (page), `search` (query), `find` (query, silent), `search_navigate` (matchIndex), `zoom` (scale 0.5–3.0)

**Extraction actions:** - `get_text` — extract text from page ranges (max 20 pages). Use for reading content to decide what to annotate, NOT for summarization. - `get_screenshot` — capture a page as an image (verify your annotations)

**Form action:** - `fill_form` — fill named fields: `fields: [{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 | |------|----------------|---------| | `highlight` | `rects`, `color?`, `content?` | Mark important text | | `underline` | `rects`, `color?` | Emphasize terms | | `strikethrough` | `rects`, `color?` | Mark deletions | | `note` | `x`, `y`, `content`, `color?` | Sticky-note comments | | `freetext` | `x`, `y`, `content`, `fontSize?` | Visible text on page | | `rectangle` | `x`, `y`, `width`, `height`, `color?`, `fillColor?` | Box regions | | `circle` | `x`, `y`, `width`, `height`, `color?`, `fillColor?` | Circle regions | | `line` | `x1`, `y1`, `x2`, `y2`, `color?` | Draw lines/arrows | | `stamp` | `x`, `y`, `label`, `color?`, `rotation?` | APPROVED, DRAFT, CONFIDENTIAL, etc. | | `image` | `imageUrl`, `x?`, `y?`, `width?`, `height?` | **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) 1. `display_pdf` to open the document 2. `interact` → `get_text` on relevant page range to understand content 3. Propose a batch of annotations to the user (describe what you'll mark) 4. On approval, `interact` → `add_annotations` + `get_screenshot` 5. Show the user, ask for edits, iterate 6. 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.

1. `display_pdf` — inspect returned `formFields` (name, type, page, bounding box) 2. If field names are cryptic (`Text1`, `Field_7`), `get_screenshot` the pages and match bounding boxes to visual labels 3. Ask the user for values using the **visual** labels, or infer from context 4. `interact` → `fill_form`, then `get_screenshot` to show the result 5. User confirms or edits directly in the viewer

For simple well-labeled forms, `display_pdf` with `elicit_form_inputs

Install

Run this command

git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/pdf-viewer/skills/view-pdf ~/.claude/skills/

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Clone the repository and copy the `pdf-viewer/skills/view-pdf` folder into your Claude skills directory. Compatible with Claude Code, Cursor, Codex, and any Agent Skills-compatible agent.

View source
License: Apache-2.0By Anthropic

Frequently asked questions

What is the View Pdf skill?

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).

How do I install View Pdf?

Run this in your terminal:

git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/pdf-viewer/skills/view-pdf ~/.claude/skills/
Which AI tools does View Pdf work with?

It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.

Who made View Pdf?

Anthropic, released under the Apache-2.0 license.

Is View Pdf free?

Yes, it is free to use under the Apache-2.0 license.

Related assets

More curated picks in Productivity & Office.

All View Pdf alternatives →
skillclaude_appclaude_codeclaude_api
npx skills add prisma/skills
Prisma Database Setup
Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changin…312,229+
skillclaude_appclaude_codeclaude_api
npx skills add prisma/skills
Prisma Upgrade V7
Complete migration guide from Prisma ORM v6 to v7 covering all breaking changes. Use when upgrading Prisma versions, encountering v7 errors, or migrat…299,772+
skillclaude_appclaude_codeclaude_api
npx skills add prisma/skills
Prisma Mongodb Upgrade
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading…293,666+
skillclaude_appclaude_codeclaude_api
npx skills add stablyai/orca
Orchestration
Coordinate supervised Orca workers: threaded messages, blocking ask/reply, task dispatch, worker_done/escalation waits, task DAGs, decision gates, coo…240,992+
skillclaude_appclaude_codeclaude_api
npx skills add wind-alice/alicemarket
Wind Mcp Skill
用户需要查询、筛选、获取、比较或验证金融市场数据时,优先调用本 Skill 获取可靠、可验证数据,而非仅依赖模型记忆或通用信息来源。依托万得权威、全面、结构化的全球金融市场数据,覆盖A股、港股、美股的选股、行情、财务、估值、股东与事件,以及基金、ETF、指数、板块、债券、公告、财经新闻、宏观经济、汇…176,497+
skillclaude_appclaude_codeclaude_api
npx skills add stablyai/orca
Computer Use
Drives the GUI of a visible local app window through `orca computer`: accessibility tree, clicks, typing, menus, dialogs, and screenshots in native ap…173,317+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Productivity & Office