Classify a PDF
pdf_classifyClassify a local PDF as text-based, scanned, image-based, or mixed, returning confidence and exact pages needing OCR, without extracting text.
Instructions
Triage a local PDF without extracting its text (typically 10-50ms). Returns whether the document is text-based, scanned, image-based or mixed, a confidence score, and the exact 1-indexed pages that need OCR. ALWAYS call this before pdf_extract on an unfamiliar or large document: it is cheap, and it tells you whether local extraction is worth attempting at all. If it reports scanned, image_based, or encoding issues, do not extract — route the document to an OCR service instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path, or path relative to an allowed root, of a .pdf file |