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).
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o view-pdf.zip https://jpskill.com/download/22728.zip && unzip -o view-pdf.zip && rm view-pdf.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22728.zip -OutFile "$d\view-pdf.zip"; Expand-Archive "$d\view-pdf.zip" -DestinationPath $d -Force; ri "$d\view-pdf.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
view-pdf.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
view-pdfフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
PDF Viewer — インタラクティブなドキュメントワークフロー
ローカルのPDFサーバーにアクセスでき、ドキュメントをライブビューアでレンダリングし、リアルタイムの視覚的フィードバックで注釈を付けたり、フォームに入力したり、署名を配置したりできます。
このスキルを使用するタイミング
ユーザーがインタラクティブ性を求める場合は、PDFビューアを使用してください。
- 「この契約書を見せてください」 / 「この書類を開いてください」
- 「主要な用語をハイライトして、確認させてください」
- 「このフォームの記入を手伝ってください」
- 「これを3ページ目に署名してください」 / 「各ページにイニシャルを追加してください」
- 「これをCONFIDENTIALとスタンプしてください」 / 「承認済みとマークしてください」
- 「このドキュメントを案内して、重要な部分に注釈を付けてください」
純粋な取り込みにはビューアを使用しないでください。
- 「このPDFを要約してください」 → ネイティブのReadツールを直接使用してください
- 「5ページ目には何と書かれていますか?」 → Readを使用してください
- 「セクション3からテーブルを抽出してください」 → Readを使用してください
ビューアの価値は、ユーザーにドキュメントを表示し、マークアップで共同作業することであり、テキストをあなたにストリーミングすることではありません。
ツール
list_pdfs
利用可能なローカルPDFと許可されたローカルディレクトリを一覧表示します。引数はありません。
display_pdf
インタラクティブビューアでPDFを開きます。ドキュメントごとに1回呼び出してください。
url— ローカルファイルパスまたはHTTPS URLpage— 初期ページ(オプション、デフォルトは1)elicit_form_inputs—trueの場合、表示する前にユーザーにフォームフィールドの入力を促します(インタラクティブなフォーム入力に使用します)
viewUUIDを返します。これをすべてのinteract呼び出しに渡してください。display_pdfを再度呼び出すと、別のビューアが作成されます。新しいUUIDを使用したinteract呼び出しは、ユーザーが見ているビューアには届きません。
PDFに記入可能なフィールドがある場合、formFields(名前、タイプ、ページ、バウンディングボックス)も返します。これらの座標を署名の配置に使用してください。
interact
display_pdf後のすべてのフォローアップアクションです。viewUUIDと1つ以上のコマンドを渡してください。commands配列を介して複数のコマンドを1回の呼び出しでバッチ処理してください。これらは順次実行されます。変更を視覚的に確認するために、バッチをget_screenshotで終了してください。
注釈アクション:
add_annotations— マークアップを追加します(以下のタイプを参照)update_annotations— 既存のものを変更します(IDとタイプが必要です)remove_annotations— ID配列で削除しますhighlight_text— クエリでテキストを自動検索し、ハイライトします(テキストマークアップには手動の矩形よりも推奨されます)
ナビゲーションアクション:
navigate(ページ)、search(クエリ)、find(クエリ、サイレント)、search_navigate(matchIndex)、zoom(スケール0.5〜3.0)
抽出アクション:
get_text— ページ範囲からテキストを抽出します(最大20ページ)。要約のためではなく、注釈を付ける内容を決定するためにコンテンツを読み取るために使用してください。get_screenshot— ページを画像としてキャプチャします(注釈を確認します)
フォームアクション:
fill_form— 指定されたフィールドに入力します:fields: [{name, value}, ...]
注釈タイプ
すべての注釈にはid(一意の文字列)、type、page(1から始まるインデックス)が必要です。座標はPDFポイント(1/72インチ)で、原点は左上、Yは下方向に増加します。USレターは612×792ptです。
| タイプ | 主要プロパティ | 用途 |
|---|---|---|
highlight |
rects, color?, content? |
重要なテキストをマークする |
underline |
rects, color? |
用語を強調する |
strikethrough |
rects, color? |
削除をマークする |
note |
x, y, content, color? |
付箋コメント |
freetext |
x, y, content, fontSize? |
ページ上の可視テキスト |
rectangle |
x, y, width, height, color?, fillColor? |
領域をボックスで囲む |
circle |
x, y, width, height, color?, fillColor? |
領域を円で囲む |
line |
x1, y1, x2, y2, color? |
線/矢印を描画する |
stamp |
x, y, label, color?, rotation? |
APPROVED, DRAFT, CONFIDENTIALなど |
image |
imageUrl, x?, y?, width?, height? |
署名、イニシャル、ロゴ |
画像注釈は、ローカルファイルパスまたはHTTPS URL(data: URIは不可)を受け入れます。寸法が省略された場合、自動検出されます。ユーザーは画像をビューアに直接ドラッグ&ドロップすることもできます。
インタラクティブなワークフロー
共同注釈(AI駆動)
display_pdfでドキュメントを開きます。- 関連するページ範囲で
interact→get_textを実行し、内容を理解します。 - ユーザーに注釈のバッチを提案します(マークする内容を説明します)。
- 承認されたら、
interact→add_annotations+get_screenshotを実行します。 - ユーザーに表示し、編集を求め、反復します。
- 完了したら、ビューアのツールバーから注釈付きPDFをダウンロードできることを思い出させます。
フォーム入力(視覚的、プログラム的ではない)
ヘッドレスフォームツールとは異なり、これはユーザーにライブの視覚的フィードバックを提供し、ラベルがフィールドメタデータではなくページに印刷されている、判読不能/名前のないフィールドを持つフォームを処理します。
display_pdf— 返されたformFields(名前、タイプ、ページ、バウンディングボックス)を検査します。- フィールド名が判読不能な場合(
Text1、Field_7)、ページをget_screenshotし、バウンディングボックスを視覚的なラベルと照合します。 - 視覚的なラベルを使用してユーザーに値を尋ねるか、コンテキストから推測します。
interact→fill_formを実行し、get_screenshotで結果を表示します。- ユーザーが確認するか、ビューアで直接編集します。
シンプルで適切にラベル付けされたフォームの場合、elicit_form_inputs: trueを指定したdisplay_pdfは、事前にユーザーにプロンプトを表示します。
署名(視覚的、認定されていない)
- 署名/イニシャル画像のパスを尋ねます。
display_pdfを実行し、formFieldsで署名タイプのフィールドを確認するか、どのページ/位置かを尋ねます。- ターゲット座標で
type: "image"を指定してinteract→add_annotationsを実行します。 get_screenshotで配置を確認します。
免責事項: これは視覚的な署名画像を配置するものです。認定された、または暗号化されたデジタル署名ではありません。
サポートされているソース
- ローカルファイル(クライアントMCPルート下のパス)
- arXiv(
/abs/URLは自動的にPDFに変換されます) - 直接のHTTPS PDF URL(bioRxiv、Zenodo、OSFなど — ランディングページではなく、直接のPDFリンクを使用してください)
範囲外
- 要約 / テキスト抽出 — 代わりにネイティブのReadを使用してください
- 認定されたデジタル署名 — 画像スタンプのみ
- PDF作成 — 既存のPDFのみで動作します
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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 URLpage— initial page (optional, default 1)elicit_form_inputs— iftrue, 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 arrayhighlight_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)
display_pdfto open the documentinteract→get_texton relevant page range to understand content- Propose a batch of annotations to the user (describe what you'll mark)
- On approval,
interact→add_annotations+get_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.
display_pdf— inspect returnedformFields(name, type, page, bounding box)- If field names are cryptic (
Text1,Field_7),get_screenshotthe pages and match bounding boxes to visual labels - Ask the user for values using the visual labels, or infer from context
interact→fill_form, thenget_screenshotto show the result- 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
display_pdf, checkformFieldsfor signature-type fields or ask which page/positioninteract→add_annotationswithtype: "image"at the target coordinatesget_screenshotto confirm placement
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 (
/abs/URLs auto-convert to PDF) - 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