Inspect a PDF
inspect_pdfUse this when the user wants to know how many pages a PDF has, its page sizes (Letter, A4, landscape), which pages are rotated or cropped, whether it is password-protected, whether it has form fields, or whether it has selectable text, before merging or splitting it. Takes one attached PDF and returns these facts with no new file. Does not read or summarize the text, does not run OCR, and does not change the file.
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": "inspect_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to inspect, e.g. contract.pdf. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| notes | Yes | ||
| pages | Yes | ||
| size_mb | Yes | ||
| has_text | Yes | ||
| encrypted | Yes | ||
| page_sizes | Yes | ||
| text_check | Yes | ||
| form_fields | Yes | ||
| cropped_pages | Yes | ||
| rotated_pages | Yes |