---
name: "documents_page_images"
area: "documents"
title: "See the pages of a scan"
price: "$0.005"
method: "POST"
url: "https://api.conecto.chat/v1/tools/documents_page_images"
mcp_server: "https://api.conecto.chat/mcp/documents"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/documents/documents_page_images"
---

# See the pages of a scan (`documents_page_images`)

The pages of a scanned PDF or a photo of a document as images to look at, up to 10 pages a call.

The pages of a scanned PDF or a photo of a document (a receipt, a letter, a signed form) as images for you to read yourself, with any text the PDF already has. Up to 10 pages a call; ask for later pages with first_page. files_ocr turns a scan's printed words into text instead ($0.005 a page); for PDFs with text, documents_read_pdf is free.

Price: $0.005 a call. A call that fails costs nothing.

## Use it when

The agent has to see a document: a handwritten note, a stamp, a signature.

- For a PDF that has a text layer, use [documents_read_pdf](https://conecto.chat/tools/documents/documents_read_pdf.md).
- For the printed words of a scan as text, use [files_ocr](https://conecto.chat/tools/files/files_ocr.md).

## Say this to your agent

> Look at the photo of the signed delivery receipt and tell me who signed for it.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `file_id` | string | yes | A file in the store (files_upload or files_list give its file_id). Exactly 36 characters. |  |  |
| `first_page` | integer | no | At least 1. |  | `1` |
| `last_page` | integer | no | At least 1. |  |  |

## Example

Written for Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff.

MCP: call `documents_page_images` on the MCP server `https://api.conecto.chat/mcp/documents` with these arguments:

```json
{
  "file_id": "8f0b2d4f-6c8e-4a0c-9e2b-5b7d9f1b3c6a"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/documents_page_images \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id": "8f0b2d4f-6c8e-4a0c-9e2b-5b7d9f1b3c6a"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "documents_page_images",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.005",
  "balance_usd": "$19.75",
  "result": {
    "pages": [
      {
        "page": 1,
        "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCARMAyADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp…",
        "text": null
      }
    ],
    "page_count": 1
  }
}
```

`result`: pages: each with its number, an image you can see (a data URL, or an image block over MCP) and any text it already has; and page_count.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No file in the store has that file_id. | Find it with files_list, or upload it first. |
| `unsupported_type` | 400 | The file is not a PDF or an image. | Read text files with files_read_text. |
| `not_image` | 400 | The image cannot be read. | Upload it again as PNG or JPEG. |
| `too_large` | 413 | The image is over 60 megapixels. | Shrink it with image_transform first. |
| `invalid_pdf` | 422 | The PDF cannot be opened (it may be password-protected). | Ask for another copy. |
| `invalid_input` | 400 | first_page is past the end of the PDF. | Ask for pages it has. |
| `pdf_locked` | 422 | The PDF is password-protected. | Ask for a copy without a password. |
| `busy` | 503 | PDFs are being read for other calls right now. | Try again in a minute; nothing was charged. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [documents_create_pdf](https://conecto.chat/tools/documents/documents_create_pdf.md): Makes a PDF from Markdown or HTML and saves it in the file store with a download link. $0.02 a call.
- [documents_convert_to_pdf](https://conecto.chat/tools/documents/documents_convert_to_pdf.md): Turns a Word, Excel, PowerPoint, OpenDocument, RTF, CSV, text, Markdown or HTML file into a PDF; the original stays. $0.02 a call.
- [documents_template_fields](https://conecto.chat/tools/documents/documents_template_fields.md): The placeholders in a Word (.docx) template, so you know what data filling it needs. Free up to 1,000,000 reads a month.
- [documents_fill_template](https://conecto.chat/tools/documents/documents_fill_template.md): Makes a new Word file from a .docx template, its placeholders filled from data. $0.02 a call.
- [documents_merge_pdfs](https://conecto.chat/tools/documents/documents_merge_pdfs.md): Makes one PDF from several in the store, in the order given. $0.01 a call.
- [documents_read_pdf](https://conecto.chat/tools/documents/documents_read_pdf.md): The text of a PDF in the store, page by page, up to 50 pages a call. Free up to 1,000,000 reads a month.
- [documents_create_deck](https://conecto.chat/tools/documents/documents_create_deck.md): A PowerPoint deck from your slides, plain or in the business's template, with editable charts, tables and each slide's sources. $0.10 a call.
