> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moss.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ParseOptions

[@moss-dev/moss](../api) / ParseOptions

# Interface: ParseOptions

Controls how the server extracts text from uploaded documents. Every field is optional;
omitted fields use the server defaults.

## Properties

| Property              | Type                                           | Description                                                                                                                                         |
| --------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ocrMode?`            | `"auto_ocr"` \| `"full_ocr"`                   | `"full_ocr"` forces OCR on every page, which is what scanned documents with no text layer need. `"auto_ocr"` runs it only where it looks necessary. |
| `useHighResolution?`  | `boolean`                                      | Slower, higher fidelity extraction. Useful for dense tables.                                                                                        |
| `segmentationMethod?` | `"smart_layout_detection"` \| `"page_by_page"` | How the document is segmented before extraction.                                                                                                    |
| `mergeTables?`        | `boolean`                                      | Merge a table split across a page break into a single segment.                                                                                      |
