Inspect PDF
pdf_inspectParse a PDF to inspect its structure: get page count, per-page sizes and item histograms, metadata, and embedded image formats. Optionally return the full parsed layout.
Instructions
Parses a PDF (documents.js's readPdf) and reports a summary: page count, each page's own size and item-kind histogram, document metadata, and embedded image formats. Pass full: true to return the entire parsed LayoutDocument instead of a summary.
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": {
"source": "<source>"
},
"name": "pdf_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | When true, return the entire parsed LayoutDocument instead of a summary. Defaults to false. | |
| source | Yes | The PDF document to inspect. |