pdf_info
Report a PDF's page count, file size, version, encryption status, and metadata. Check encrypted files without a password, or use a local prompt to enter one.
Instructions
Report page count, file size, PDF version, encryption status and metadata.
Works on an encrypted file without a password (returns is_encrypted only).
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>"
},
"name": "pdf_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| input_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| path | Yes | ||
| pages | Yes | ||
| metadata | Yes | ||
| linearized | Yes | ||
| size_bytes | Yes | ||
| pdf_version | Yes | ||
| permissions | Yes | ||
| is_encrypted | Yes | ||
| first_page_size_pt | Yes |