PDF info
pdf_infoInspect a local PDF to report its page count, file size, first-page dimensions in points, and password protection without modifying the file.
Instructions
Reads a PDF and reports its page count, file size, first page size in points, and whether it is password-protected. Changes nothing.
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 | Absolute path to a PDF file, or one starting with ~/. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | Yes | Null when the file is encrypted in a way that hides its page list | |
| encrypted | Yes | ||
| first_page | Yes | ||
| file_size_bytes | Yes |