# Extend

Parse and extract content from documents

## Usage Instructions

Integrate Extend AI into the workflow. Parse and extract structured content from documents or file references.

## Tools

### `extend_parser`

#### Input

| Parameter      | Type   | Required | Description                                                                          |
| -------------- | ------ | -------- | ------------------------------------------------------------------------------------ |
| `file`         | file   | Yes      | Document to be processed                                                             |
| `outputFormat` | string | No       | Target output format (markdown or spatial). Defaults to markdown.                    |
| `chunking`     | string | No       | Chunking strategy (page, document, or section). Defaults to page.                    |
| `engine`       | string | No       | Parsing engine (parse\_performance or parse\_light). Defaults to parse\_performance. |
| `apiKey`       | string | Yes      | Extend API key                                                                       |

#### Output

| Parameter     | Type   | Description                                         |
| ------------- | ------ | --------------------------------------------------- |
| `id`          | string | Unique identifier for the parser run                |
| `status`      | string | Processing status                                   |
| `chunks`      | json   | Parsed document content chunks                      |
| `blocks`      | json   | Block-level document elements with type and content |
| `pageCount`   | number | Number of pages processed                           |
| `creditsUsed` | number | API credits consumed                                |
