PDF info
pdf_infoInspect a PDF's page count, title, author, text layer, tagging, and encryption before reading it, so you can decide whether OCR or deeper extraction is needed.
Instructions
Metadata and diagnosis of a PDF: page count, title, author, whether pages have a text layer (scanned pages need OCR), whether it is tagged or encrypted. Cheap: call it first on a PDF you have not seen, to decide how much to read.
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": {
"path": "<path>"
},
"name": "pdf_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the PDF file: absolute, or relative to the server's working directory. | |
| password | No | Password of an encrypted PDF. Only when an error asks for it. |