PDF info
pdf_infoRead a PDF locally to report page count, page sizes, title, and encryption status before splitting, extracting, or rotating pages. Fails clearly if the file is not a PDF or needs a password.
Instructions
Read a PDF on this machine and report its page count, page sizes, title and whether it was encrypted. Read-only: nothing is written. Use before split_pdf, extract_pdf_pages or rotate_pdf to learn the page count. Fails with a readable error if the file is not a PDF or needs a password.
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 to the PDF. | |
| password | No | Password for a PDF that asks for one when opened. Used only on this machine. |