Read PDF metadata
pdf_metadataRead a PDF's document info: page_count, per-page width/height (points) and rotation, title, author, subject, keywords, creator, producer, creation_date, modification_date (ISO 8601, null when absent), whether it was encrypted, and has_form / form_field_count. Call this to learn a document's size and shape before splitting, rotating or filling. Read-only: the PDF is fetched but never modified.
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": {
"pdf_path": "<pdf_path>"
},
"name": "pdf_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | Password to open the input, only needed for a user-password PDF (owner-locked files with an empty user password open without it). | |
| pdf_path | Yes | PDF source: an https:// URL or a data:application/pdf;base64,… URI (this hosted server cannot read local file paths). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| title | No | ||
| author | No | ||
| creator | No | ||
| subject | No | ||
| has_form | Yes | ||
| keywords | No | ||
| producer | No | ||
| encrypted | Yes | ||
| page_count | Yes | ||
| creation_date | No | ||
| form_field_count | Yes | ||
| modification_date | No |