Inspect a PDF
pdf_infoInspect a local PDF to retrieve its page count, per-page dimensions, and document metadata, ensuring valid page references before merging or extracting.
Instructions
Report the page count, per-page dimensions and document metadata of a local PDF. Read-only: the file is never modified. Call this before merging or extracting so page numbers are known to be valid.
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 | The PDF to inspect. Absolute, or relative to the client's working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| pages | Yes | ||
| title | Yes | ||
| author | Yes | ||
| pageCount | Yes | ||
| sizeBytes | Yes |