parse_document
Extracts structured content and layout from PDFs, images, and Office files, using quality modes for complex tables, charts, handwriting, or low-quality scans.
Instructions
Parse a document using Upstage AI's document digitization API.
This tool extracts the structure and content from various document types,
including PDFs, images, and Office files. It preserves the original formatting
and layout while converting the document into a structured format.
Use mode='enhanced' for documents with complex tables, charts, handwriting or
low-quality scans (higher cost, slower), or mode='auto' to let the API decide
per page. The response ends with the model and per-mode page usage reported
by the API, plus a WARNING line if the requested mode was not applied.
Supported file formats include: PDF, JPEG, PNG, TIFF, and other common document formats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | OCR mode. 'force' (default): always run OCR. 'auto': use the embedded text of digital documents and run OCR only when needed. | force |
| mode | No | Parsing mode. 'standard' (default): fast and cheapest, good for ordinary text-centric documents. 'enhanced': use for complex tables, charts, handwriting or low-quality scans; it costs more per page and is slower. 'auto': let the API decide per page whether enhanced processing is needed. | standard |
| model | No | Document Parse model name. Use the default 'document-parse' for the latest version, or a dated version such as 'document-parse-260930' to pin it. | document-parse |
| file_path | Yes | Path to the document file to be processed | |
| output_formats | No | Output formats (e.g., 'html', 'text', 'markdown') |