pdf_info
Summarizes a PDF before reading it: page count, metadata, encryption status, text layer presence, page sizes, and bookmarks with page numbers. Call first to decide how to read the file.
Instructions
Summarise a PDF: page count, metadata, whether it is encrypted, whether it has a text layer (a scanned PDF does not), page sizes, and the outline/bookmarks with page numbers. Call this first to decide how to read the file.
path: PDF file inside an allowed folder (absolute, or relative to the first allowed folder). password: only for encrypted PDFs. Without it an encrypted file just reports that it is locked.
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 | ||
| password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |