PDF info
pdf_infoCheck a PDF’s path, file size, and page count as JSON before using page tools; encrypted files return no page count until unlocked.
Instructions
Read-only check of a PDF: returns its path, file size in bytes and page count as JSON. Call it before page tools to learn how many pages there are. Nothing is written. An encrypted PDF returns no page count (with a note) until its password is known; a file that is not a PDF returns an error.
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": {
"file": "<file>"
},
"name": "pdf_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). |