pdf_info
Get PDF metadata—page count, title, author, encryption, and text layer status—to determine if you can read text directly or need OCR for scanned documents.
Instructions
Get PDF metadata: page count, title, author, dates, encryption, page size, file size, and whether the PDF has an embedded text layer (vs scanned-only).
Use this first to decide between pdf_read (text layer) and pdf_view/pdf_ocr (scanned).
Args: source: Local file path or direct http(s) URL to a PDF.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "pdf_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |